From b4b1314c7bab45cf8bc2c9f59d36a3a82e51b6c6 Mon Sep 17 00:00:00 2001 From: harryxu Date: Tue, 1 Jan 2013 01:58:17 +0800 Subject: [PATCH] Add anchor to commit note link for note event. --- app/views/events/event/_note.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/events/event/_note.html.haml b/app/views/events/event/_note.html.haml index 8c12969345f..e9bed557dd1 100644 --- a/app/views/events/event/_note.html.haml +++ b/app/views/events/event/_note.html.haml @@ -3,7 +3,7 @@ %span.event_label commented on #{event.note_target_type} - if event.note_target - if event.note_commit? - = link_to event.note_short_commit_id, project_commit_path(event.project, event.note_commit_id), class: "commit_short_id" + = link_to event.note_short_commit_id, project_commit_path(event.project, event.note_commit_id, anchor: "note_#{event.target.id}"), class: "commit_short_id" - else = link_to [event.project, event.note_target] do %strong= truncate event.note_target_id -- GitLab