X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c789acd39d1c685b490975dc06721dadd76c83ef..ebeea34670ed0fca539daef0e7a10887d839e6d2:/app/views/redactions/show.html.erb?ds=sidebyside diff --git a/app/views/redactions/show.html.erb b/app/views/redactions/show.html.erb index 174fe97e4..b9786992c 100644 --- a/app/views/redactions/show.html.erb +++ b/app/views/redactions/show.html.erb @@ -12,8 +12,8 @@ <%= @redaction.description.to_html %>

-<% if @user and @user.moderator? %> -
+<% 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') } %>