From: Anton Khorev Date: Wed, 11 Sep 2024 11:14:35 +0000 (+0300) Subject: Add New Redaction button to redactions page X-Git-Tag: live~201^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/418615bce79fd23b96da02ef9f1e5824aeb9fac5 Add New Redaction button to redactions page --- 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"