mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-31 12:49:38 +00:00
Adds a "Delete" button to issue notes (#1725).
git-svn-id: http://svn.redmine.org/redmine/trunk@15072 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
c860d352a2
commit
936aceb8f5
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user