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:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-03-31 23:39:31 +0300
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-04-03 16:34:36 +0300
commit633457563a9e9ef9473a00019dd243430aa08e80 (patch)
treeb1a4f6c61075454824da9b613c30d3ea9418a03f /app/views/events/event/_common.html.haml
parentb90f83e93319d54d558b29838d7453444f3fcf11 (diff)
Differentiate between event types
Diffstat (limited to 'app/views/events/event/_common.html.haml')
-rw-r--r--app/views/events/event/_common.html.haml14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/events/event/_common.html.haml b/app/views/events/event/_common.html.haml
index 0d230e3f3f2..98a4dda5b4d 100644
--- a/app/views/events/event/_common.html.haml
+++ b/app/views/events/event/_common.html.haml
@@ -1,11 +1,13 @@
- 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 }