Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d4c5dc49
Commit
d4c5dc49
authored
Apr 11, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only show icons on profile page; change to case statement
parent
c7011c88
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
18 deletions
+21
-18
app/views/events/event/_common.html.haml
app/views/events/event/_common.html.haml
+8
-6
app/views/events/event/_created_project.html.haml
app/views/events/event/_created_project.html.haml
+5
-4
app/views/events/event/_note.html.haml
app/views/events/event/_note.html.haml
+4
-4
app/views/events/event/_push.html.haml
app/views/events/event/_push.html.haml
+4
-4
No files found.
app/views/events/event/_common.html.haml
View file @
d4c5dc49
-
if
current_path?
(
'dashboard#activity'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
-
if
current_path?
(
'users#show'
)
-
if
event
.
target
-
if
event
.
action_name
==
"opened"
-
case
event
.
action_name
-
when
'opened'
.system-note-image.open-icon
=
custom_icon
(
"icon_status_open"
)
-
elsif
event
.
action_name
==
"closed"
-
when
'closed'
.system-note-image.closed-icon
=
custom_icon
(
"icon_status_closed"
)
-
else
.system-note-image.fork-icon
=
custom_icon
(
"icon_code_fork"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
%span
.author_name
=
link_to_author
event
...
...
app/views/events/event/_created_project.html.haml
View file @
d4c5dc49
-
if
current_path?
(
'dashboard#activity'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
-
if
current_path?
(
'users#show'
)
.system-note-image.open-icon
=
custom_icon
(
"icon_status_open"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
%span
.author_name
=
link_to_author
event
...
...
app/views/events/event/_note.html.haml
View file @
d4c5dc49
-
if
current_path?
(
'dashboard#activity'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
-
if
current_path?
(
'users#show'
)
.system-note-image
=
custom_icon
(
"icon_comment_o"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
%span
.author_name
=
link_to_author
event
...
...
app/views/events/event/_push.html.haml
View file @
d4c5dc49
-
project
=
event
.
project
-
if
current_path?
(
'dashboard#activity'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
-
if
current_path?
(
'users#show'
)
.system-note-image
-
if
event
.
action_name
==
"deleted"
=
custom_icon
(
"trash_o"
)
-
else
=
custom_icon
(
"icon_commit"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
%span
.author_name
=
link_to_author
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