]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/index.html.erb
Merge pull request #4800 from AntonKhorev/welcome-stack
[rails.git] / app / views / user_blocks / index.html.erb
index 9318a1dede8a0014580b12444c7924f15e74359b..4d200b516cd574b7f469ce4e17b2854a13d6b68e 100644 (file)
@@ -1,3 +1,13 @@
-<h1><%= t('user_block.index.heading') %></h1>
+<% @title = t(".title") %>
 
-<%= render :partial => 'blocks', :locals => { :show_revoke_link => (@user and @user.moderator?), :show_user_name => true, :show_moderator_name => true } %>
+<% content_for :heading_class, "pb-0" %>
+<% content_for :heading do %>
+  <h1><%= t(".heading") %></h1>
+  <%= render :partial => "navigation" %>
+<% end %>
+
+<% unless @user_blocks.empty? %>
+<%= render :partial => "blocks", :locals => { :show_revoke_link => can?(:revoke, UserBlock), :show_user_name => true, :show_creator_name => true } %>
+<% else %>
+<p><%= t ".empty" %></p>
+<% end %>