diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-20 11:05:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-20 11:05:23 +0000 |
commit | 936aceb8f56152b56edffa7837891145f978d068 (patch) | |
tree | 02b51cd4d0e61e42a518f6445bd3b90324a7f258 /app/helpers/journals_helper.rb | |
parent | c860d352a21456ad715757ad70e5b01757ed0e03 (diff) | |
download | redmine-936aceb8f56152b56edffa7837891145f978d068.tar.gz redmine-936aceb8f56152b56edffa7837891145f978d068.zip |
Adds a "Delete" button to issue notes (#1725).
git-svn-id: http://svn.redmine.org/redmine/trunk@15072 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/journals_helper.rb')
-rw-r--r-- | app/helpers/journals_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index 4e9fd3866..00194dbd0 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -42,6 +42,12 @@ module JournalsHelper :title => l(:button_edit), :class => 'icon-only icon-edit' ) if editable + links << link_to('', + {:controller => 'journals', :action => 'edit', :id => journal, :notes => ""}, + :remote => true, + :method => :post, :data => {:confirm => l(:text_are_you_sure)}, + :title => l(:button_delete), + :class => 'icon-only icon-del') if editable end content << content_tag('div', links.join(' ').html_safe, :class => 'contextual') unless links.empty? content << textilizable(journal, :notes) |