diff options
author | Jan Christophersen <jan@ruken.pw> | 2017-02-13 19:47:41 +0100 |
---|---|---|
committer | Jan Christophersen <jan@ruken.pw> | 2017-02-15 16:16:53 +0100 |
commit | 407b491e2d994492c097b9c8878f094bb8041576 (patch) | |
tree | cfdfef7ec9a7325b281629ace73543ae7f6cf4ca /app/views/events | |
parent | 35b31ba84fd4ea37debfaf50a5ab98a417f2158a (diff) | |
download | gitlab-ce-407b491e2d994492c097b9c8878f094bb8041576.tar.gz |
Remove Link from Push Events for deleted branches
Diffstat (limited to 'app/views/events')
-rw-r--r-- | app/views/events/event/_push.html.haml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/views/events/event/_push.html.haml b/app/views/events/event/_push.html.haml index 64ca3c32e01..efd13aabf20 100644 --- a/app/views/events/event/_push.html.haml +++ b/app/views/events/event/_push.html.haml @@ -3,11 +3,9 @@ .event-title %span.author_name= link_to_author event %span.pushed #{event.action_name} #{event.ref_type} - - if event.rm_ref? - %strong= event.ref_name - - else - %strong - = link_to event.ref_name, namespace_project_commits_path(project.namespace, project, event.ref_name), title: h(event.target_title) + %strong + - commits_link = namespace_project_commits_path(project.namespace, project, event.ref_name) + = link_to_if project.repository.branch_exists?(event.ref_name), event.ref_name, commits_link = render "events/event_scope", event: event |