+<% if @journal.private_notes? %>
+ (<%= l(:field_private_notes) %>)
+<% end %>
<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => h(@journal.user)) %>
<ul>
-<%= l(:text_issue_updated, :id => "##{@issue.id}", :author => @journal.user) %>
+<%= "(#{l(:field_private_notes)}) " if @journal.private_notes? -%><%= l(:text_issue_updated, :id => "##{@issue.id}", :author => @journal.user) %>
<% details_to_strings(@journal.details, true).each do |string| -%>
<%= string %>
assert_not_include 'someone@foo.bar', ActionMailer::Base.deliveries.last.bcc.sort
end
+ def test_issue_edit_should_mark_private_notes
+ journal = Journal.find(2)
+ journal.private_notes = true
+ journal.save!
+
+ with_settings :default_language => 'en' do
+ Mailer.issue_edit(journal).deliver
+ end
+ assert_mail_body_match '(Private notes)', last_email
+ end
+
def test_document_added
document = Document.find(1)
valid_languages.each do |lang|