X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e0b175d3bd3ef655a20273dc2b7f04a8a34bb5f6..123c7d10a5e798e2379dfb04df4a22b1deface3c:/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 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 %> - <h1><%= t('.heading') %></h1> + <h1><%= t(".heading") %></h1> <% end %> <% unless @redactions.empty? %> - <%= render :partial => 'redactions' %> + <ul id="redaction_list"> + <%= render @redactions %> + </ul> <% else %> - <p><%= t '.empty' %></p> + <p><%= t ".empty" %></p> +<% end %> + +<% if can?(:create, Redaction) %> + <div> + <%= link_to t(".new"), new_redaction_path, :class => "btn btn-outline-primary" %> + </div> <% end %>