From 418615bce79fd23b96da02ef9f1e5824aeb9fac5 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 11 Sep 2024 14:14:35 +0300 Subject: [PATCH] Add New Redaction button to redactions page --- app/views/redactions/index.html.erb | 6 ++++++ config/locales/en.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/app/views/redactions/index.html.erb b/app/views/redactions/index.html.erb index b6b6ef46e..26dad64cf 100644 --- a/app/views/redactions/index.html.erb +++ b/app/views/redactions/index.html.erb @@ -10,3 +10,9 @@ <% else %>

<%= t ".empty" %>

<% end %> + +<% if can?(:create, Redaction) %> +
+ <%= link_to t(".new"), new_redaction_path, :class => "btn btn-outline-primary" %> +
+<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 9a383569e..395cb3bf7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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" -- 2.39.5