Commit 6135eeaa3e635f53d48297281ed0466622b77161
1 parent
c2303737
Exists in
master
and in
4 other branches
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 | 5 | .event-title |
6 | 6 | %strong.author_name #{event.author_name} |
7 | 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 | 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 | 13 | at |
11 | 14 | %strong= link_to event.project.name, event.project |
12 | 15 | ... | ... |