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)
38 38
      links << link_to_in_place_notes_editor(image_tag('edit.png'), "journal-#{journal.id}-notes",
39 39
                                             { :controller => 'journals', :action => 'edit', :id => journal, :format => 'js' },
40 40
                                                :title => l(:button_edit)) if editable
41
      links << link_to(image_tag('delete.png'),
42
                       {:controller => 'journals', :action => 'edit', :id => journal, :notes => ""},
43
                       :method => :post, :data => {:confirm => l(:text_issue_note_destroy_confirmation)}, 
44
                       :title => l(:button_delete)) if editable
41 45
    end
42 46
    content << content_tag('div', links.join(' ').html_safe, :class => 'contextual') unless links.empty?
43 47
    content << textilizable(journal, :notes)
config/locales/en.yml (working copy)
1123 1123
  text_session_expiration_settings: "Warning: changing these settings may expire the current sessions including yours."
1124 1124
  text_project_closed: This project is closed and read-only.
1125 1125
  text_turning_multiple_off: "If you disable multiple values, multiple values will be removed in order to preserve only one value per item."
1126
  text_issue_note_destroy_confirmation: "Are you sure you want to delete this note?"
1126 1127

  
1127 1128
  default_role_manager: Manager
1128 1129
  default_role_developer: Developer
(3-3/3)