Project

General

Profile

Feature #1725 » add_a_delete_link_to_journal_entries_v2.patch

patch against 3.2.0.devel.15067 - Go MAEDA, 2016-01-17 16:25

View differences:

app/helpers/journals_helper.rb (working copy)
links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes",
{ :controller => 'journals', :action => 'edit', :id => journal, :format => 'js' },
:title => l(:button_edit)) if editable
links << link_to(image_tag('delete.png'),
{:controller => 'journals', :action => 'edit', :id => journal, :notes => ""},
:method => :post, :data => {:confirm => l(:text_issue_note_destroy_confirmation)},
:title => l(:button_delete)) if editable
end
content << content_tag('div', links.join(' ').html_safe, :class => 'contextual') unless links.empty?
content << textilizable(journal, :notes)
config/locales/en.yml (working copy)
text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
text_project_closed: This project is closed and read-only.
text_turning_multiple_off: "If you disable multiple values, multiple values will be removed in order to preserve only one value per item."
text_issue_note_destroy_confirmation: "Are you sure you want to delete this note?"
default_role_manager: Manager
default_role_developer: Developer
(3-3/3)