X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1c062165f695a8fb07653d6331bbb914052c5faf..139ccef2dd9af4188065eb55a5d74ccb0aadda76:/app/views/user_blocks/blocks_on.html.erb diff --git a/app/views/user_blocks/blocks_on.html.erb b/app/views/user_blocks/blocks_on.html.erb index 3275c003c..7d1f83ce3 100644 --- a/app/views/user_blocks/blocks_on.html.erb +++ b/app/views/user_blocks/blocks_on.html.erb @@ -2,8 +2,9 @@ <% content_for :heading do %>

<%= t(".heading_html", :name => link_to(@user.display_name, user_path(@user))) %>

<% end %> + <% unless @user_blocks.empty? %> <%= render :partial => "blocks", :locals => { :show_revoke_link => can?(:revoke, UserBlock), :show_user_name => false, :show_creator_name => true } %> <% else %> -

<%= t ".empty", :name => h(@user.display_name) %>

+

<%= t ".empty", :name => @user.display_name %>

<% end %>