Commit 482f1a7d19afc6a003e094d7fbb93193f6a742b3
1 parent
b9ab93e1
Exists in
master
and in
4 other branches
Add HTML anchors for comments #929
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
app/views/notes/_show.html.haml
@@ -2,9 +2,10 @@ | @@ -2,9 +2,10 @@ | ||
2 | = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;" | 2 | = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;" |
3 | %div.note-author | 3 | %div.note-author |
4 | %strong= note.author_name | 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 | - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) | 9 | - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) |
9 | %strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small" | 10 | %strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small" |
10 | 11 |