Commit c89449e6 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '28082-deleted-branch-event-404' into 'master'

Remove Link from Push Events for deleted branches

Closes #28082

See merge request !9203
parents 6f906da3 407b491e
......@@ -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)
- 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
......
---
title: Stop linking to deleted Branches in Activity tabs
merge_request: 9203
author: Jan Christophersen
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment