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:
authorRémy Coutable <remy@rymai.me>2017-01-26 20:59:50 +0300
committerRémy Coutable <remy@rymai.me>2017-02-13 20:59:13 +0300
commit4f51e1fad0609c0cd50468243a83970728186a8e (patch)
tree3715351f174cd5a42a88893296ef08f9befb838c /app/views/users/calendar_activities.html.haml
parent79d68383030f8aa7c97d3df53ae90137383eb0cd (diff)
Add comment events to contributions calendar
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/views/users/calendar_activities.html.haml')
-rw-r--r--app/views/users/calendar_activities.html.haml6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/users/calendar_activities.html.haml b/app/views/users/calendar_activities.html.haml
index b09782749f5..dae147ca8be 100644
--- a/app/views/users/calendar_activities.html.haml
+++ b/app/views/users/calendar_activities.html.haml
@@ -13,8 +13,10 @@
#{event.action_name} #{event.ref_type} #{event.ref_name}
- else
= event_action_name(event)
- - if event.target
- %strong= link_to "#{event.target.to_reference}", [event.project.namespace.becomes(Namespace), event.project, event.target]
+ - if event.note?
+ %strong= link_to event.note_target.to_reference, event_note_target_path(event)
+ - elsif event.target
+ %strong= link_to event.target.to_reference, [event.project.namespace.becomes(Namespace), event.project, event.target]
at
%strong