X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0d3a9ed9cb47ce3b89ea9eaffbb589f9a9ff6d22..83425edd8da6a01047702cbb3ac8642f3ef452fa:/app/views/redactions/index.html.erb?ds=sidebyside diff --git a/app/views/redactions/index.html.erb b/app/views/redactions/index.html.erb index 1fa683de8..26dad64cf 100644 --- a/app/views/redactions/index.html.erb +++ b/app/views/redactions/index.html.erb @@ -1,8 +1,18 @@ -<% @title = t('redaction.index.title') %> -

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

+<% @title = t(".title") %> +<% content_for :heading do %> +

<%= 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 %>