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:
authorDouwe Maan <douwe@gitlab.com>2015-02-13 14:00:12 +0300
committerDouwe Maan <douwe@gitlab.com>2015-02-13 14:02:58 +0300
commit522efa43fe9ff5828838a5d5ed49db23bfd88c95 (patch)
tree9ab692f5a1b74968ba5e68ea113779587392690b /app/views/events/event/_common.html.haml
parent07d05d2df7d1b79406232e91a7354e0c7fd1877a (diff)
Refactor event title generation for more consistent messages.
Example: "User joined project Namespace / Project" rather than "User joined project at Namespace / Project"
Diffstat (limited to 'app/views/events/event/_common.html.haml')
-rw-r--r--app/views/events/event/_common.html.haml10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/events/event/_common.html.haml b/app/views/events/event/_common.html.haml
index a9d3adf41df..b0cfba0dea1 100644
--- a/app/views/events/event/_common.html.haml
+++ b/app/views/events/event/_common.html.haml
@@ -1,15 +1,17 @@
.event-title
%span.author_name= link_to_author event
- %span.event_label{class: event.action_name}= event_action_name(event)
+ %span.event_label{class: event.action_name}
+ = event_action_name(event)
+
- if event.target
%strong= link_to "##{event.target_iid}", [event.project, event.target]
- - else
- %strong= gfm event.target_title
- at
+ at
+
- if event.project
= link_to_project event.project
- else
= event.project_name
+
- if event.target.respond_to?(:title)
.event-body
.event-note