]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5186'
authorTom Hughes <tom@compton.nu>
Wed, 11 Sep 2024 16:12:13 +0000 (17:12 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 11 Sep 2024 16:12:13 +0000 (17:12 +0100)
app/views/redactions/index.html.erb
config/locales/en.yml

index b6b6ef46e063e8f358eac3c64dc6ad8a440a918f..26dad64cfe1907eb415acb84f3880be59abdc8e5 100644 (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 %>
index 9da502c7c7b6b719b3c438b09eecb706b1a22d5c..16015d92c33ac5c40feee67686c7d3a18ec5d3c2 100644 (file)
@@ -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"