X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9519f26241c5715313d82a2d3f9fb3f44210b2c0..851de28303fc9c24d095b9452b862bea618ec0da:/app/views/redactions/show.html.erb diff --git a/app/views/redactions/show.html.erb b/app/views/redactions/show.html.erb new file mode 100644 index 000000000..04df9ade9 --- /dev/null +++ b/app/views/redactions/show.html.erb @@ -0,0 +1,16 @@ +<% @title = t('redaction.show.title') %> +

<%= t('redaction.show.heading', :title => @redaction.title) %>

+ +

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

+

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

+ +<% 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) %> +<% end %>