Commit da400b215e455cdb255bfb0aed6648c2ac1a533b
Exists in
master
and in
4 other branches
Merge pull request #931 from goshakkk/comments-anchors
Add HTML anchors for comments
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
app/views/notes/_show.html.haml
... | ... | @@ -2,9 +2,10 @@ |
2 | 2 | = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;" |
3 | 3 | %div.note-author |
4 | 4 | %strong= note.author_name |
5 | - %cite.cgray | |
6 | - = time_ago_in_words(note.updated_at) | |
7 | - ago | |
5 | + = link_to "##{dom_id(note)}", name: dom_id(note) do | |
6 | + %cite.cgray | |
7 | + = time_ago_in_words(note.updated_at) | |
8 | + ago | |
8 | 9 | - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) |
9 | 10 | %strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small" |
10 | 11 | ... | ... |