Browse Source

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
tags/3.4.0
Jean-Philippe Lang 8 years ago
parent
commit
82158fb724

+ 1
- 1
app/helpers/journals_helper.rb View File

@@ -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)

+ 1
- 1
app/views/issues/_history.html.erb View File

@@ -5,7 +5,7 @@
<h4><a href="#note-<%= journal.indice %>" class="journal-link">#<%= journal.indice %></a>
<%= avatar(journal.user, :size => "24") %>
<%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %>
<%= render_private_notes(journal) %></h4>
<%= render_private_notes_indicator(journal) %></h4>

<% if journal.details.any? %>
<ul class="details">

+ 1
- 1
app/views/journals/update.js.erb View File

@@ -3,7 +3,7 @@
<% else %>
$("#change-<%= @journal.id %>").attr('class', '<%= @journal.css_classes %>');
$("#journal-<%= @journal.id %>-notes").replaceWith('<%= escape_javascript(render_notes(@journal.issue, @journal, :reply_links => authorize_for('issues', 'edit'))) %>');
$("#journal-<%= @journal.id %>-private_notes").replaceWith('<%= escape_javascript(render_private_notes(@journal)) %>');
$("#journal-<%= @journal.id %>-private_notes").replaceWith('<%= escape_javascript(render_private_notes_indicator(@journal)) %>');
$("#journal-<%= @journal.id %>-notes").show();
$("#journal-<%= @journal.id %>-form").remove();
<% end %>

Loading…
Cancel
Save