summaryrefslogtreecommitdiff
path: root/app/views/events
diff options
context:
space:
mode:
authorMario de la Ossa <mariodelaossa@gmail.com>2017-12-19 17:02:56 +0000
committerRémy Coutable <remy@rymai.me>2017-12-19 17:02:56 +0000
commit9410fbef9fa3979673b3769c5dc40686ea125240 (patch)
treed0868ba828bed0ea0a2b5b215a9d3541542e12a3 /app/views/events
parent0be4b0b74e785a6ea18db0b13d1390608d828aa6 (diff)
downloadgitlab-ce-9410fbef9fa3979673b3769c5dc40686ea125240.tar.gz
Fix tags in the Activity tab not being clickable
Diffstat (limited to 'app/views/events')
-rw-r--r--app/views/events/event/_push.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/events/event/_push.html.haml b/app/views/events/event/_push.html.haml
index 9a763887b30..f85f5c5be88 100644
--- a/app/views/events/event/_push.html.haml
+++ b/app/views/events/event/_push.html.haml
@@ -7,7 +7,8 @@
%span.pushed #{event.action_name} #{event.ref_type}
%strong
- commits_link = project_commits_path(project, event.ref_name)
- = link_to_if project.repository.branch_exists?(event.ref_name), event.ref_name, commits_link, class: 'ref-name'
+ - should_link = event.tag? ? project.repository.tag_exists?(event.ref_name) : project.repository.branch_exists?(event.ref_name)
+ = link_to_if should_link, event.ref_name, commits_link, class: 'ref-name'
= render "events/event_scope", event: event