From 82158fb72432542183bb46af478a4060ca41997c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 Jul 2016 11:04:59 +0000 Subject: [PATCH] Renames #render_private_notes to #render_private_notes_indicator (#22575). git-svn-id: http://svn.redmine.org/redmine/trunk@15623 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/journals_helper.rb | 2 +- app/views/issues/_history.html.erb | 2 +- app/views/journals/update.js.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index 92b4f35fb..0183480e8 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -61,7 +61,7 @@ module JournalsHelper content_tag('div', content.html_safe, :id => "journal-#{journal.id}-notes", :class => css_classes) end - def render_private_notes(journal) + def render_private_notes_indicator(journal) content = journal.private_notes? ? l(:field_is_private) : '' css_classes = journal.private_notes? ? 'private' : '' content_tag('span', content.html_safe, :id => "journal-#{journal.id}-private_notes", :class => css_classes) diff --git a/app/views/issues/_history.html.erb b/app/views/issues/_history.html.erb index 603e8f984..31df3b81d 100644 --- a/app/views/issues/_history.html.erb +++ b/app/views/issues/_history.html.erb @@ -5,7 +5,7 @@

#<%= journal.indice %> <%= avatar(journal.user, :size => "24") %> <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %> - <%= render_private_notes(journal) %>

+ <%= render_private_notes_indicator(journal) %> <% if journal.details.any? %>