Feature #1725 » add_a_delete_link_to_journal_entries.patch
| app/helpers/journals_helper.rb | ||
|---|---|---|
| 27 | 27 |
links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes",
|
| 28 | 28 |
{ :controller => 'journals', :action => 'edit', :id => journal },
|
| 29 | 29 |
:title => l(:button_edit)) if editable |
| 30 |
links << link_to(image_tag('delete.png'),
|
|
| 31 |
{:controller => 'journals', :action => 'edit', :id => journal, :notes => ""},
|
|
| 32 |
:method => :post, :confirm => l(:text_are_you_sure), |
|
| 33 |
:title => l(:button_delete)) if editable |
|
| 30 | 34 |
end |
| 31 | 35 |
content << content_tag('div', links.join(' '), :class => 'contextual') unless links.empty?
|
| 32 | 36 |
content << textilizable(journal, :notes) |