]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/redactions/show.html.erb
Added redactions resource
[rails.git] / 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 (file)
index 0000000..04df9ad
--- /dev/null
@@ -0,0 +1,16 @@
+<% @title = t('redaction.show.title') %>
+<h1><%= t('redaction.show.heading', :title => @redaction.title) %></h1>
+
+<p>
+  <b><%= t 'redaction.show.user' %></b>
+  <%= link_to(h(@redaction.user.display_name), {:controller => 'user', :action => 'view', :display_name => @redaction.user.display_name}) %>
+</p>
+<p>
+  <b><%= t 'redaction.show.description' %></b>
+  <%= @redaction.description.to_html %>
+</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) %>
+<% end %>