BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
63ba17c4
Commit
63ba17c4
authored
Sep 03, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redesign activity feed on dashboard and project pages
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
59d9dc44
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
70 additions
and
68 deletions
+70
-68
activities.js.coffee
app/assets/javascripts/activities.js.coffee
+1
-1
gl_variables.scss
app/assets/stylesheets/base/gl_variables.scss
+10
-2
variables.scss
app/assets/stylesheets/base/variables.scss
+1
-1
blocks.scss
app/assets/stylesheets/generic/blocks.scss
+9
-0
buttons.scss
app/assets/stylesheets/generic/buttons.scss
+16
-0
events.scss
app/assets/stylesheets/pages/events.scss
+23
-51
events_helper.rb
app/helpers/events_helper.rb
+4
-6
_activities.html.haml
app/views/dashboard/_activities.html.haml
+2
-2
_event.html.haml
app/views/events/_event.html.haml
+2
-2
_activity.html.haml
app/views/projects/_activity.html.haml
+1
-2
_event_filter.html.haml
app/views/shared/_event_filter.html.haml
+1
-1
No files found.
app/assets/javascripts/activities.js.coffee
View file @
63ba17c4
class
@
Activities
constructor
:
->
Pager
.
init
20
,
true
$
(
".event
_filter_link
"
).
bind
"click"
,
(
event
)
=>
$
(
".event
-filter .btn
"
).
bind
"click"
,
(
event
)
=>
event
.
preventDefault
()
@
toggleFilter
(
$
(
event
.
currentTarget
))
@
reloadActivities
()
...
...
app/assets/stylesheets/base/gl_variables.scss
View file @
63ba17c4
...
...
@@ -43,8 +43,9 @@ $font-size-base: $gl-font-size;
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
$padding-base-vertical
:
6px
;
$padding-base-horizontal
:
14px
;
$padding-base-horizontal
:
18px
;
$component-active-color
:
#fff
;
$component-active-bg
:
$brand-info
;
//== Forms
//
...
...
@@ -131,3 +132,10 @@ $code-bg: #f9f2f4;
$kbd-color
:
#fff
;
$kbd-bg
:
#333
;
//== Buttons
//
//##
$btn-default-color
:
#7f8fa4
;
$btn-default-bg
:
#fff
;
$btn-default-border
:
#e7e9ed
;
app/assets/stylesheets/base/variables.scss
View file @
63ba17c4
...
...
@@ -21,7 +21,7 @@ $fixed-layout-width: 1200px;
*/
$gl-primary
:
#446e9b
;
$gl-success
:
#44c679
;
$gl-info
:
#0
29ACF
;
$gl-info
:
#0
0aaff
;
$gl-warning
:
#EB9532
;
$gl-danger
:
#d9534f
;
...
...
app/assets/stylesheets/generic/blocks.scss
View file @
63ba17c4
...
...
@@ -17,3 +17,12 @@
font-size
:
16px
;
line-height
:
36px
;
}
.gray-content-block
{
margin
:
-15px
;
background-color
:
#f8fafc
;
padding
:
18px
;
margin-bottom
:
0px
;
border-top
:
1px
solid
#e7e9ed
;
border-bottom
:
1px
solid
#e7e9ed
;
}
app/assets/stylesheets/generic/buttons.scss
View file @
63ba17c4
...
...
@@ -72,3 +72,19 @@
}
}
}
.btn-group-next
{
.btn
{
padding
:
9px
0px
;
font-size
:
15px
;
color
:
#7f8fa4
;
border-color
:
#e7e9ed
;
width
:
140px
;
&
.active
{
border-color
:
$gl-info
;
background
:
$gl-info
;
color
:
#fff
;
}
}
}
app/assets/stylesheets/pages/events.scss
View file @
63ba17c4
/**
* Events labels
*
*/
.event_label
{
&
.pushed
{
padding
:
0
2px
;
}
&
.opened
{
padding
:
0
2px
;
}
&
.closed
{
padding
:
0
2px
;
}
&
.merged
{
padding
:
0
2px
;
}
&
.left
,
&
.joined
{
padding
:
0
2px
;
float
:
none
;
}
}
/**
* Dashboard events feed
*
*/
.event-item
{
&
:first-child
{
padding-top
:
0
;
}
font-size
:
16px
;
padding
:
18px
;
margin
:
0
-15px
;
border-bottom
:
1px
solid
#f1f2f4
;
color
:
#7f8fa4
;
&
.event-inline
{
.avatar
{
...
...
@@ -42,29 +16,35 @@
}
}
padding
:
12px
0px
;
border-bottom
:
1px
solid
#eee
;
a
{
color
:
#4c4e54
;
}
.avatar
{
margin-right
:
15px
;
}
.event-title
{
max-width
:
70%
;
@include
str-truncated
(
calc
(
100%
-
174px
));
max-width
:
70%
;
font-weight
:
500
;
font-size
:
14px
;
.author_name
{
color
:
#333
;
}
}
.event-body
{
font-size
:
13px
;
margin-left
:
35px
;
margin-left
:
60px
;
margin-right
:
80px
;
color
:
#777
;
.event-note
{
margin-top
:
5px
;
word-wrap
:
break-word
;
.md
{
font-size
:
1
3
px
;
font-size
:
1
6
px
;
iframe
.twitter-share-button
{
vertical-align
:
bottom
;
...
...
@@ -116,7 +96,7 @@
&
:last-child
{
border
:none
}
.event_commits
{
margin-top
:
5
px
;
margin-top
:
9
px
;
li
{
&
.commit
{
...
...
@@ -125,10 +105,12 @@
padding-left
:
0
;
border
:
none
;
.commit-row-title
{
font-size
:
1
2
px
;
font-size
:
1
6
px
;
}
}
&
.commits-stat
{
margin-top
:
3px
;
display
:
block
;
padding
:
3px
;
padding-left
:
0
;
...
...
@@ -142,7 +124,6 @@
.event-item-timestamp
{
float
:
right
;
color
:
#999
;
line-height
:
22px
;
}
}
...
...
@@ -186,12 +167,3 @@
}
}
}
.event_filter
{
li
a
{
font-size
:
13px
;
padding
:
5px
10px
;
background
:
$background-color
;
margin-left
:
4px
;
}
}
app/helpers/events_helper.rb
View file @
63ba17c4
...
...
@@ -27,16 +27,14 @@ module EventsHelper
key
=
key
.
to_s
active
=
'active'
if
@event_filter
.
active?
(
key
)
link_opts
=
{
class:
'event_filter_link'
,
class:
"event-filter-link btn btn-default
#{
active
}
"
,
id:
"
#{
key
}
_event_filter"
,
title:
"Filter by
#{
tooltip
.
downcase
}
"
,
data:
{
toggle:
'tooltip'
,
placement:
'top'
}
}
content_tag
:li
,
class:
"filter_icon
#{
active
}
"
do
link_to
request
.
path
,
link_opts
do
icon
(
icon_for_event
[
key
])
+
content_tag
(
:span
,
' '
+
tooltip
)
end
link_to
request
.
path
,
link_opts
do
content_tag
(
:span
,
' '
+
tooltip
)
end
end
...
...
@@ -66,7 +64,7 @@ module EventsHelper
end
words
<<
"at"
elsif
event
.
target
words
<<
"#
#{
event
.
target_iid
}
:"
words
<<
"#
#{
event
.
target_iid
}
:"
words
<<
event
.
target
.
title
if
event
.
target
.
respond_to?
(
:title
)
words
<<
"at"
end
...
...
app/views/dashboard/_activities.html.haml
View file @
63ba17c4
.hidden-xs
=
render
"events/event_last_push"
,
event:
@last_push
.gray-content-block
-
if
current_user
%ul
.nav.nav-pills.event_filter.pull-right
%li
.pull-right
=
link_to
dashboard_path
(
:atom
,
{
private_token:
current_user
.
private_token
}),
class:
'rss-btn'
do
%i
.fa.fa-rss
=
render
'shared/event_filter'
%hr
.content_list
=
spinner
app/views/events/_event.html.haml
View file @
63ba17c4
...
...
@@ -3,8 +3,8 @@
.event-item-timestamp
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
=
cache
[
event
,
"v
1
"
]
do
=
image_tag
avatar_icon
(
event
.
author_email
,
24
),
class:
"avatar s24
"
,
alt
:''
=
cache
[
event
,
"v
2
"
]
do
=
image_tag
avatar_icon
(
event
.
author_email
,
48
),
class:
"avatar s48
"
,
alt
:''
-
if
event
.
created_project?
=
render
"events/event/created_project"
,
event:
event
-
elsif
event
.
push?
...
...
app/views/projects/_activity.html.haml
View file @
63ba17c4
=
render
'projects/last_push'
.
hidden-xs
.
gray-content-block
-
if
current_user
%ul
.nav.nav-pills.event_filter.pull-right
%li
...
...
@@ -7,7 +7,6 @@
%i
.fa.fa-rss
=
render
'shared/event_filter'
%hr
.content_list
{
:"data-href"
=>
activity_project_path
(
@project
)}
=
spinner
...
...
app/views/shared/_event_filter.html.haml
View file @
63ba17c4
%ul
.nav.nav-pills.event_
filter
.btn-group.btn-group-next.event-
filter
=
event_filter_link
EventFilter
.
push
,
'Push events'
=
event_filter_link
EventFilter
.
merged
,
'Merge events'
=
event_filter_link
EventFilter
.
comments
,
'Comments'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment