]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/show.html.erb
Replace htmlize call by rich text to_html call
[rails.git] / app / views / redactions / show.html.erb
index 04df9ade9b4eec98a46549f2e6c5f57028d66da3..1a24f15b43d6b34725f52ca34fc80326ca6ae539 100644 (file)
@@ -3,7 +3,7 @@
 
 <p>
   <b><%= t 'redaction.show.user' %></b>
-  <%= link_to(h(@redaction.user.display_name), {:controller => 'user', :action => 'view', :display_name => @redaction.user.display_name}) %>
+  <%= link_to(@redaction.user.display_name, {:controller => 'user', :action => 'view', :display_name => @redaction.user.display_name}) %>
 </p>
 <p>
   <b><%= t 'redaction.show.description' %></b>
 </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 %>