Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a button to delete notes, make it clear this deletes only the not…
…es and doesn't revert changes to the issue. #1725
  • Loading branch information
thegcat committed Sep 15, 2010
1 parent cdfc57d commit 5be3c6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/journals_helper.rb
Expand Up @@ -27,6 +27,10 @@ def render_notes(issue, journal, options={})
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 => (journal.details.empty? ? l(:text_are_you_sure) : l(:text_notes_destroy_confirmation)),
:title => l(:button_delete_notes)) if editable
end
content << content_tag('div', links.join(' '), :class => 'contextual') unless links.empty?
content << textilizable(journal, :notes)
Expand Down
2 changes: 2 additions & 0 deletions config/locales/de.yml
Expand Up @@ -799,6 +799,7 @@ de:
button_check_all: Alles auswählen
button_uncheck_all: Alles abwählen
button_delete: Löschen
button_delete_notes: Kommentar löschen
button_create: Anlegen
button_create_and_continue: Anlegen + nächstes Ticket
button_test: Testen
Expand Down Expand Up @@ -904,6 +905,7 @@ de:
text_own_membership_delete_confirmation: "Sie sind dabei, einige oder alle Ihre Berechtigungen zu entfernen. Es ist möglich, dass Sie danach das Projekt nicht mehr ansehen oder bearbeiten dürfen.\nSind Sie sicher, dass Sie dies tun möchten?"
text_zoom_in: Zoom in
text_zoom_out: Zoom out
text_notes_destroy_confirmation: "Es wird nur der Kommentar gelöscht und nicht die Änderung(en) am Ticket rückgängig gemacht.\nSind Sie sicher, dass Sie dies tun möchten?"

default_role_manager: Manager
default_role_developer: Entwickler
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Expand Up @@ -782,6 +782,7 @@ en:
button_check_all: Check all
button_uncheck_all: Uncheck all
button_delete: Delete
button_delete_notes: Delete notes
button_create: Create
button_create_and_continue: Create and continue
button_test: Test
Expand Down Expand Up @@ -887,6 +888,7 @@ en:
text_own_membership_delete_confirmation: "You are about to remove some or all of your permissions and may no longer be able to edit this project after that.\nAre you sure you want to continue?"
text_zoom_in: Zoom in
text_zoom_out: Zoom out
text_notes_destroy_confirmation: "This will only delete the notes and not revert changes to this issue.\nAre you sure you want to continue?"

default_role_manager: Manager
default_role_developer: Developer
Expand Down

0 comments on commit 5be3c6e

Please sign in to comment.