]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/show.html.erb
Merge branch 'master' into moderation
[rails.git] / app / views / redactions / show.html.erb
index 2404df734e3fb78ab213bf915faecddabcf025de..b9786992ce8542f70577455a999c14512312ce6b 100644 (file)
   <%= @redaction.description.to_html %>
 </p>
 
-<% if @user and @user.moderator? %>
-<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>
+<% if current_user and current_user.moderator? %>
+<div class="buttons">
+  <%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %></td>
+  <%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %>
+</div>
 <% end %>