mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 00:26:07 +10:00
Add anchors to comments from event feed
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -90,14 +90,14 @@ module EventsHelper
|
||||
if event.note? && event.note_commit?
|
||||
project_commit_path(event.project, event.note_target)
|
||||
else
|
||||
url_for([event.project, event.note_target])
|
||||
polymorphic_path([event.project, event.note_target], anchor: dom_id(event.target))
|
||||
end
|
||||
end
|
||||
|
||||
def event_note_title_html(event)
|
||||
if event.note_target
|
||||
if event.note_commit?
|
||||
link_to project_commit_path(event.project, event.note_commit_id), class: "commit_short_id" do
|
||||
link_to project_commit_path(event.project, event.note_commit_id, anchor: dom_id(event.target)), class: "commit_short_id" do
|
||||
"#{event.note_target_type} #{event.note_short_commit_id}"
|
||||
end
|
||||
elsif event.note_project_snippet?
|
||||
|
||||
Reference in New Issue
Block a user