]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/index.html.erb
Convert various moderator? tests to use cancancan permissions checks
[rails.git] / app / views / user_blocks / index.html.erb
1 <% @title = t(".title") %>
2 <% content_for :heading do %>
3   <h1><%= t(".heading") %></h1>
4 <% end %>
5
6 <% unless @user_blocks.empty? %>
7 <%= render :partial => "blocks", :locals => { :show_revoke_link => can?(:revoke, UserBlock), :show_user_name => true, :show_creator_name => true } %>
8 <% else %>
9 <p><%= t ".empty" %></p>
10 <% end %>