Feature #1725 » add_a_delete_link_to_journal_entries.patch
| 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)
|
||