Remove Link from Push Events for deleted branches
This commit is contained in:
parent
35b31ba84f
commit
407b491e2d
|
@ -3,11 +3,9 @@
|
||||||
.event-title
|
.event-title
|
||||||
%span.author_name= link_to_author event
|
%span.author_name= link_to_author event
|
||||||
%span.pushed #{event.action_name} #{event.ref_type}
|
%span.pushed #{event.action_name} #{event.ref_type}
|
||||||
- if event.rm_ref?
|
%strong
|
||||||
%strong= event.ref_name
|
- commits_link = namespace_project_commits_path(project.namespace, project, event.ref_name)
|
||||||
- else
|
= link_to_if project.repository.branch_exists?(event.ref_name), event.ref_name, commits_link
|
||||||
%strong
|
|
||||||
= link_to event.ref_name, namespace_project_commits_path(project.namespace, project, event.ref_name), title: h(event.target_title)
|
|
||||||
|
|
||||||
= render "events/event_scope", event: event
|
= render "events/event_scope", event: event
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Stop linking to deleted Branches in Activity tabs
|
||||||
|
merge_request: 9203
|
||||||
|
author: Jan Christophersen
|
Loading…
Reference in New Issue