]> git.openstreetmap.org Git - rails.git/blob - app/views/redactions/show.html.erb
Really remove login.live.com from CSP allow list
[rails.git] / app / views / redactions / show.html.erb
1 <% @title = t(".title") %>
2 <% content_for :heading do %>
3   <h1><%= t(".heading", :title => @redaction.title) %></h1>
4 <% end %>
5
6 <p>
7   <b><%= t ".user" %></b>
8   <%= link_to @redaction.user.display_name, @redaction.user %>
9 </p>
10 <div class="richtext text-break">
11   <b><%= t ".description" %></b>
12   <%= @redaction.description.to_html %>
13 </div>
14
15 <% if can?(:edit, Redaction) || can?(:destroy, Redaction) %>
16 <div>
17   <% if can?(:edit, Redaction) %>
18     <%= link_to t(".edit"), edit_redaction_path(@redaction), :class => "btn btn-outline-primary" %>
19   <% end %>
20   <% if can?(:destroy, Redaction) %>
21     <%= link_to t(".destroy"), @redaction, :method => "delete", :class => "btn btn-outline-danger", :remote => true, :data => { :confirm => t(".confirm") } %>
22   <% end %>
23 </div>
24 <% end %>