Fix formatting of redaction messages on browse history pages

This commit is contained in:
Tom Hughes 2013-01-16 23:05:09 +00:00
parent f360d77aff
commit 2401515ca6

View file

@ -1,8 +1,9 @@
<% if node_details.redacted? %>
<p><%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.node'), :redaction_link => link_to(t('browse.redacted.redaction', :id => node_details.redaction.id), node_details.redaction), :version => node_details.version %></p>
<% else %>
<div class="browse_details" id="<%= node_details.version %>">
<% if node_details.redacted? %>
<div class='browse-section'>
<%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.node'), :redaction_link => link_to(t('browse.redacted.redaction', :id => node_details.redaction.id), node_details.redaction), :version => node_details.version %>
</div>
<% else %>
<%= render :partial => "common_details", :object => node_details %>
<% if node_details.visible -%>
@ -23,6 +24,5 @@
</ul>
</div>
<% end %>
</div>
<% end %>
</div>