Commit 3950f807 authored by Robert Speicher's avatar Robert Speicher

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`.
parent c05ed99b
...@@ -150,7 +150,8 @@ module EventsHelper ...@@ -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}"
......
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