diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index cf87724..eece1b3 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -27,6 +27,10 @@ module JournalsHelper links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes", { :controller => 'journals', :action => 'edit', :id => journal }, :title => l(:button_edit)) if editable + links << link_to(image_tag('delete.png'), + {:controller => 'journals', :action => 'edit', :id => journal, :notes => ""}, + :method => :post, :confirm => l(:text_are_you_sure), + :title => l(:button_delete)) if editable end content << content_tag('div', links.join(' '), :class => 'contextual') unless links.empty? content << textilizable(journal, :notes)