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:
Robert Speicher 2016-05-08 15:28:21 -04:00
parent c05ed99bff
commit 3950f8074c
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ module EventsHelper
link_to(
namespace_project_commit_path(event.project.namespace, event.project,
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"
) do
"#{event.note_target_type} #{event.note_short_commit_id}"