X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2c7bc3649367bb7f1f75e8ed78c50464645b87cc..f6141277d5a727fdec5c7bb26e35b17b1e6f495d:/app/views/redactions/index.html.erb diff --git a/app/views/redactions/index.html.erb b/app/views/redactions/index.html.erb index b53e9b747..26dad64cf 100644 --- a/app/views/redactions/index.html.erb +++ b/app/views/redactions/index.html.erb @@ -1,10 +1,18 @@ -<% @title = t('.title') %> +<% @title = t(".title") %> <% content_for :heading do %> -

<%= t('.heading') %>

+

<%= t(".heading") %>

<% end %> <% unless @redactions.empty? %> - <%= render :partial => 'redactions' %> + <% else %> -

<%= t '.empty' %>

+

<%= t ".empty" %>

+<% end %> + +<% if can?(:create, Redaction) %> +
+ <%= link_to t(".new"), new_redaction_path, :class => "btn btn-outline-primary" %> +
<% end %>