mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-03 14:19:41 +00:00
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
This commit is contained in:
parent
fc9a99fe36
commit
82158fb724
@ -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)
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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…
x
Reference in New Issue
Block a user