From 6135eeaa3e635f53d48297281ed0466622b77161 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Sun, 30 Sep 2012 00:53:21 +0200 Subject: [PATCH] Don't link to removed ref --- app/views/events/_event_push.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/events/_event_push.html.haml b/app/views/events/_event_push.html.haml index b5273b542..e9a2e95f1 100644 --- a/app/views/events/_event_push.html.haml +++ b/app/views/events/_event_push.html.haml @@ -5,8 +5,11 @@ .event-title %strong.author_name #{event.author_name} %span.event_label.pushed #{event.push_action_name} #{event.ref_type} - = link_to project_commits_path(event.project, event.ref_name) do + - if event.rm_ref? %strong= event.ref_name + - else + = link_to project_commits_path(event.project, event.ref_name) do + %strong= event.ref_name at %strong= link_to event.project.name, event.project -- 2.11.0