1 <% @title = t(".title") %>
2 <% content_for :heading do %>
3 <h1><%= t(".heading", :title => @redaction.title) %></h1>
7 <b><%= t ".user" %></b>
8 <%= link_to @redaction.user.display_name, @redaction.user %>
10 <div class="richtext text-break">
11 <b><%= t ".description" %></b>
12 <%= @redaction.description.to_html %>
15 <% if can?(:edit, Redaction) || can?(:destroy, Redaction) %>
17 <% if can?(:edit, Redaction) %>
18 <%= link_to t(".edit"), edit_redaction_path(@redaction), :class => "btn btn-outline-primary" %>
20 <% if can?(:destroy, Redaction) %>
21 <%= link_to t(".destroy"), @redaction, :class => "btn btn-outline-danger", :data => { :turbo => true, :turbo_method => "DELETE", :turbo_confirm => t(".confirm") } %>