Commit 482f1a7d authored by Gosha Arinich's avatar Gosha Arinich

Add HTML anchors for comments #929

parent b9ab93e1
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
= image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;" = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
%div.note-author %div.note-author
%strong= note.author_name %strong= note.author_name
%cite.cgray = link_to "##{dom_id(note)}", name: dom_id(note) do
= time_ago_in_words(note.updated_at) %cite.cgray
ago = time_ago_in_words(note.updated_at)
ago
- if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
%strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small" %strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small"
......
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