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

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

+

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

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

<%= t 'redaction.index.empty' %>

+

<%= t ".empty" %>

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