]> git.openstreetmap.org Git - rails.git/commitdiff
Fix formatting of redaction messages on browse history pages
authorTom Hughes <tom@compton.nu>
Wed, 16 Jan 2013 23:05:09 +0000 (23:05 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 16 Jan 2013 23:05:09 +0000 (23:05 +0000)
app/views/browse/_node_details.html.erb

index 308ccd9bf43da7b3df5281a13fbdf308682a5254..8dec338d6960db54454226d9759f33e271fe09e5 100644 (file)
@@ -1,8 +1,9 @@
+<div class="browse_details" id="<%= node_details.version %>">
 <% 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>
+  <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 %>
-<div class="browse_details" id="<%= node_details.version %>">
-
   <%= render :partial => "common_details", :object => node_details %>
 
   <% if node_details.visible -%>
@@ -23,6 +24,5 @@
       </ul>
     </div>
   <% end %>
-
-</div>
 <% end %>
+</div>