]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/show.html.erb
Fix regression - no link to view diary of other users
[rails.git] / app / views / redactions / show.html.erb
index 162dd6bfe4617e07bab76e44c6d512134b710d4a..1a24f15b43d6b34725f52ca34fc80326ca6ae539 100644 (file)
 </p>
 
 <% if @user and @user.moderator? %>
-<%= link_to t('redaction.show.edit'), edit_redaction_path(@redaction) %>
-<%= button_to(t('redaction.show.destroy'), @redaction, :confirm => t('redaction.show.confirm'), :method => "delete", :remote => true) %>
+<table>
+<tr>
+<td><%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %></td>
+<td><%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %></td>
+</tr>
+</table>
 <% end %>