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
63345756
Commit
63345756
authored
Mar 31, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Differentiate between event types
parent
b90f83e9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
14 deletions
+23
-14
events.scss
app/assets/stylesheets/pages/events.scss
+6
-1
_event.html.haml
app/views/events/_event.html.haml
+0
-3
_common.html.haml
app/views/events/event/_common.html.haml
+8
-6
_created_project.html.haml
app/views/events/event/_created_project.html.haml
+3
-1
_note.html.haml
app/views/events/event/_note.html.haml
+3
-1
_push.html.haml
app/views/events/event/_push.html.haml
+3
-2
No files found.
app/assets/stylesheets/pages/events.scss
View file @
63345756
...
...
@@ -4,7 +4,7 @@
*/
.event-item
{
font-size
:
$gl-font-size
;
padding
:
$gl-padding
;
padding
:
$gl-padding
0
;
border-bottom
:
1px
solid
$white-normal
;
color
:
$list-text-color
;
...
...
@@ -25,6 +25,11 @@
color
:
$list-text-color
;
}
.event-icon
{
display
:
inline-block
;
margin
:
0
10px
;
}
svg
{
height
:
16px
;
width
:
16px
;
...
...
app/views/events/_event.html.haml
View file @
63345756
...
...
@@ -4,13 +4,10 @@
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
-
if
event
.
created_project?
=
custom_icon
(
"icon_status_open"
)
=
render
"events/event/created_project"
,
event:
event
-
elsif
event
.
push?
=
custom_icon
(
"icon_commit"
)
=
render
"events/event/push"
,
event:
event
-
elsif
event
.
commented?
=
custom_icon
(
"comment_o"
)
=
render
"events/event/note"
,
event:
event
-
else
=
render
"events/event/common"
,
event:
event
app/views/events/event/_common.html.haml
View file @
63345756
-
if
event
.
target
-
if
event
.
target_type
==
"MergeRequest
"
-
if
event
.
action_name
==
"opened"
-
if
event
.
action_name
==
"opened
"
.event-icon.open-icon
=
custom_icon
(
"icon_status_open"
)
-
elsif
event
.
action_name
==
"closed"
=
custom_icon
(
"icon_status_closed"
)
-
else
=
custom_icon
(
"code_fork"
)
-
elsif
event
.
action_name
==
"closed"
.event-icon.closed-icon
=
custom_icon
(
"icon_status_closed"
)
-
else
.event-icon.fork-icon
=
custom_icon
(
"code_fork"
)
.event-title
%span
{
class:
event
.
action_name
}
...
...
app/views/events/event/_created_project.html.haml
View file @
63345756
.event-icon.open-icon
=
custom_icon
(
"icon_status_open"
)
.event-title
%span
.author_name
=
link_to_author
event
%span
{
class:
event
.
action_name
}
=
event_action_name
(
event
)
...
...
app/views/events/event/_note.html.haml
View file @
63345756
.event-icon
=
custom_icon
(
"comment_o"
)
.event-title
%span
.author_name
=
link_to_author
event
=
event
.
action_name
=
event_note_title_html
(
event
)
...
...
app/views/events/event/_push.html.haml
View file @
63345756
-
project
=
event
.
project
.event-icon
=
custom_icon
(
"icon_commit"
)
.event-title
%span
.author_name
=
link_to_author
event
%span
.pushed
#{
event
.
action_name
}
#{
event
.
ref_type
}
%strong
-
commits_link
=
namespace_project_commits_path
(
project
.
namespace
,
project
,
event
.
ref_name
)
...
...
@@ -48,4 +50,3 @@
.event-body
%ul
.well-list.event_commits
=
render
"events/commit"
,
commit:
last_commit
,
project:
project
,
event:
event
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