]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/show.html.erb
Site cleanup
[rails.git] / app / views / redactions / show.html.erb
index e9f8ac3cc467c4df02828ad36f383298104746a7..798ed962a58d68092ce00af8da186279122a5c3d 100644 (file)
@@ -1,5 +1,7 @@
 <% @title = t('redaction.show.title') %>
-<h1><%= t('redaction.show.heading', :title => @redaction.title) %></h1>
+<% content_for :heading do %>
+  <h1><%= t('redaction.show.heading', :title => @redaction.title) %></h1>
+<% end %>
 
 <p>
   <b><%= t 'redaction.show.user' %></b>
@@ -14,7 +16,7 @@
 <table>
 <tr>
 <td><%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %></td>
-<td><%= button_to t('redaction.show.destroy'), @redaction, :confirm => t('redaction.show.confirm'), :method => "delete", :remote => true %></td>
+<td><%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %></td>
 </tr>
 </table>
 <% end %>