Project

General

Profile

Feature #1725 » add_a_delete_link_to_journal_entries.patch

Adds a delete button to issue journal entries - Felix Schäfer, 2010-07-07 20:00

View differences:

app/helpers/journals_helper.rb
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)
(1-1/3)