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
0
Merge Requests
0
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
Léo-Paul Géneau
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
Show 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'
)
-
if
current_path?
(
'users#show'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
-
if
event
.
target
-
if
event
.
target
-
if
event
.
action_name
==
"opened"
-
case
event
.
action_name
-
when
'opened'
.system-note-image.open-icon
.system-note-image.open-icon
=
custom_icon
(
"icon_status_open"
)
=
custom_icon
(
"icon_status_open"
)
-
elsif
event
.
action_name
==
"closed"
-
when
'closed'
.system-note-image.closed-icon
.system-note-image.closed-icon
=
custom_icon
(
"icon_status_closed"
)
=
custom_icon
(
"icon_status_closed"
)
-
else
-
else
.system-note-image.fork-icon
.system-note-image.fork-icon
=
custom_icon
(
"icon_code_fork"
)
=
custom_icon
(
"icon_code_fork"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
.event-title
%span
.author_name
=
link_to_author
event
%span
.author_name
=
link_to_author
event
...
...
app/views/events/event/_created_project.html.haml
View file @
d4c5dc49
-
if
current_path?
(
'dashboard#activity'
)
-
if
current_path?
(
'users#show'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
.system-note-image.open-icon
.system-note-image.open-icon
=
custom_icon
(
"icon_status_open"
)
=
custom_icon
(
"icon_status_open"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
.event-title
%span
.author_name
=
link_to_author
event
%span
.author_name
=
link_to_author
event
...
...
app/views/events/event/_note.html.haml
View file @
d4c5dc49
-
if
current_path?
(
'dashboard#activity'
)
-
if
current_path?
(
'users#show'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
.system-note-image
.system-note-image
=
custom_icon
(
"icon_comment_o"
)
=
custom_icon
(
"icon_comment_o"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
.event-title
%span
.author_name
=
link_to_author
event
%span
.author_name
=
link_to_author
event
...
...
app/views/events/event/_push.html.haml
View file @
d4c5dc49
-
project
=
event
.
project
-
project
=
event
.
project
-
if
current_path?
(
'dashboard#activity'
)
-
if
current_path?
(
'users#show'
)
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
-
else
.system-note-image
.system-note-image
-
if
event
.
action_name
==
"deleted"
-
if
event
.
action_name
==
"deleted"
=
custom_icon
(
"trash_o"
)
=
custom_icon
(
"trash_o"
)
-
else
-
else
=
custom_icon
(
"icon_commit"
)
=
custom_icon
(
"icon_commit"
)
-
else
.system-note-image.user-avatar
=
author_avatar
(
event
,
size:
32
)
.event-title
.event-title
%span
.author_name
=
link_to_author
event
%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