From 0675552463c5afccd81bbfe1ff276d19d0d79446 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 4 Aug 2013 16:46:46 +0300 Subject: [PATCH] It was hard to click on small edit icon for comment --- app/views/projects/notes/_note.html.haml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index 1389d8993..fbc924c4e 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -8,8 +8,11 @@ - if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project) = link_to "#", title: "Edit comment", class: "js-note-edit" do %i.icon-edit + Edit +   = link_to project_note_path(@project, note), title: "Remove comment", method: :delete, confirm: 'Are you sure you want to remove this comment?', remote: true, class: "danger js-note-delete" do %i.icon-trash.cred + Remove = image_tag gravatar_icon(note.author_email), class: "avatar s32" = link_to_member(@project, note.author, avatar: false) %span.note-last-update -- 2.11.0