Add New Redaction button to redactions page

This commit is contained in:
Anton Khorev 2024-09-11 14:14:35 +03:00
parent 1a5fb52c28
commit 418615bce7
2 changed files with 7 additions and 0 deletions

View file

@ -10,3 +10,9 @@
<% else %>
<p><%= t ".empty" %></p>
<% end %>
<% if can?(:create, Redaction) %>
<div>
<%= link_to t(".new"), new_redaction_path, :class => "btn btn-outline-primary" %>
</div>
<% end %>

View file

@ -3204,6 +3204,7 @@ en:
empty: "No redactions to show."
heading: "List of Redactions"
title: "List of Redactions"
new: "New Redaction"
new:
heading: "Enter Information for New Redaction"
title: "Creating New Redaction"