X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5..1a2bdacf1769d3157b895b662b6e43a2aa59d9e6:/app/views/redactions/show.html.erb diff --git a/app/views/redactions/show.html.erb b/app/views/redactions/show.html.erb index 798ed962a..99f7cd1f1 100644 --- a/app/views/redactions/show.html.erb +++ b/app/views/redactions/show.html.erb @@ -5,18 +5,16 @@

<%= t 'redaction.show.user' %> - <%= link_to(@redaction.user.display_name, {:controller => 'user', :action => 'view', :display_name => @redaction.user.display_name}) %> + <%= link_to(@redaction.user.display_name, user_path(@redaction.user)) %>

-

+

<%= t 'redaction.show.description' %> <%= @redaction.description.to_html %>

-<% if @user and @user.moderator? %> - - - - - -
<%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %><%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %>
+<% if current_user and current_user.moderator? %> +
+ <%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %> + <%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %> +
<% end %>