]> git.openstreetmap.org Git - rails.git/blob - app/views/redactions/show.html.erb
1a24f15b43d6b34725f52ca34fc80326ca6ae539
[rails.git] / app / views / redactions / show.html.erb
1 <% @title = t('redaction.show.title') %>
2 <h1><%= t('redaction.show.heading', :title => @redaction.title) %></h1>
3
4 <p>
5   <b><%= t 'redaction.show.user' %></b>
6   <%= link_to(@redaction.user.display_name, {:controller => 'user', :action => 'view', :display_name => @redaction.user.display_name}) %>
7 </p>
8 <p>
9   <b><%= t 'redaction.show.description' %></b>
10   <%= @redaction.description.to_html %>
11 </p>
12
13 <% if @user and @user.moderator? %>
14 <table>
15 <tr>
16 <td><%= button_to t('redaction.show.edit'), edit_redaction_path(@redaction), :method => :get %></td>
17 <td><%= button_to t('redaction.show.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('redaction.show.confirm') } %></td>
18 </tr>
19 </table>
20 <% end %>