Commit 6135eeaa3e635f53d48297281ed0466622b77161

Authored by Riyad Preukschas
1 parent c2303737

Don't link to removed ref

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
app/views/events/_event_push.html.haml
@@ -5,8 +5,11 @@ @@ -5,8 +5,11 @@
5 .event-title 5 .event-title
6 %strong.author_name #{event.author_name} 6 %strong.author_name #{event.author_name}
7 %span.event_label.pushed #{event.push_action_name} #{event.ref_type} 7 %span.event_label.pushed #{event.push_action_name} #{event.ref_type}
8 - = link_to project_commits_path(event.project, event.ref_name) do 8 + - if event.rm_ref?
9 %strong= event.ref_name 9 %strong= event.ref_name
  10 + - else
  11 + = link_to project_commits_path(event.project, event.ref_name) do
  12 + %strong= event.ref_name
10 at 13 at
11 %strong= link_to event.project.name, event.project 14 %strong= link_to event.project.name, event.project
12 15