Fix titles for commit references in Event feed
Prior, the `title` attribute was being included as an argument to the route helper rather than as an argument to `link_to`.
This commit is contained in:
parent
c05ed99bff
commit
3950f8074c
1 changed files with 2 additions and 1 deletions
|
@ -150,7 +150,8 @@ module EventsHelper
|
||||||
link_to(
|
link_to(
|
||||||
namespace_project_commit_path(event.project.namespace, event.project,
|
namespace_project_commit_path(event.project.namespace, event.project,
|
||||||
event.note_commit_id,
|
event.note_commit_id,
|
||||||
anchor: dom_id(event.target), title: h(event.target_title)),
|
anchor: dom_id(event.target)),
|
||||||
|
title: h(event.target_title),
|
||||||
class: "commit_short_id"
|
class: "commit_short_id"
|
||||||
) do
|
) do
|
||||||
"#{event.note_target_type} #{event.note_short_commit_id}"
|
"#{event.note_target_type} #{event.note_short_commit_id}"
|
||||||
|
|
Loading…
Reference in a new issue