##// END OF EJS Templates
Adds a "Delete" button to issue notes (#1725)....
Jean-Philippe Lang -
r14690:936aceb8f561
parent child
Show More
@@ -42,6 +42,12 module JournalsHelper
42 :title => l(:button_edit),
42 :title => l(:button_edit),
43 :class => 'icon-only icon-edit'
43 :class => 'icon-only icon-edit'
44 ) if editable
44 ) if editable
45 links << link_to('',
46 {:controller => 'journals', :action => 'edit', :id => journal, :notes => ""},
47 :remote => true,
48 :method => :post, :data => {:confirm => l(:text_are_you_sure)},
49 :title => l(:button_delete),
50 :class => 'icon-only icon-del') if editable
45 end
51 end
46 content << content_tag('div', links.join(' ').html_safe, :class => 'contextual') unless links.empty?
52 content << content_tag('div', links.join(' ').html_safe, :class => 'contextual') unless links.empty?
47 content << textilizable(journal, :notes)
53 content << textilizable(journal, :notes)
General Comments 0
You need to be logged in to leave comments. Login now