From: Tom Hughes Date: Wed, 11 Sep 2024 16:12:13 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/pull/5186' X-Git-Tag: live~684 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b34e71f1d9f215cb685d992e1c8950abb4daeea8?hp=71b859ca8f187eda649a26d87c64f229b89e8525 Merge remote-tracking branch 'upstream/pull/5186' --- 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 9da502c7c..16015d92c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3198,6 +3198,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"