Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/events/event')
-rw-r--r--app/views/events/event/_common.html.haml14
-rw-r--r--app/views/events/event/_created_project.html.haml9
-rw-r--r--app/views/events/event/_note.html.haml8
-rw-r--r--app/views/events/event/_push.html.haml8
4 files changed, 21 insertions, 18 deletions
diff --git a/app/views/events/event/_common.html.haml b/app/views/events/event/_common.html.haml
index e6bb05e975e..7e18618ab49 100644
--- a/app/views/events/event/_common.html.haml
+++ b/app/views/events/event/_common.html.haml
@@ -1,17 +1,19 @@
-- 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
diff --git a/app/views/events/event/_created_project.html.haml b/app/views/events/event/_created_project.html.haml
index 259533bd400..653aa16ca00 100644
--- a/app/views/events/event/_created_project.html.haml
+++ b/app/views/events/event/_created_project.html.haml
@@ -1,9 +1,10 @@
-- 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
diff --git a/app/views/events/event/_note.html.haml b/app/views/events/event/_note.html.haml
index 1785fe6ab16..8437ace22b5 100644
--- a/app/views/events/event/_note.html.haml
+++ b/app/views/events/event/_note.html.haml
@@ -1,9 +1,9 @@
-- 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
diff --git a/app/views/events/event/_push.html.haml b/app/views/events/event/_push.html.haml
index 8acee9c1da0..d67139777a1 100644
--- a/app/views/events/event/_push.html.haml
+++ b/app/views/events/event/_push.html.haml
@@ -1,14 +1,14 @@
- 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