X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/59102ea017825ceafdfe603cc43f9dd45e5c0ab6..67a5809c8a486b5e8cc92dabd08624afc1a12e6c:/app/views/user_blocks/blocks_by.html.erb?ds=sidebyside diff --git a/app/views/user_blocks/blocks_by.html.erb b/app/views/user_blocks/blocks_by.html.erb index d49a74c0a..38254a5a3 100644 --- a/app/views/user_blocks/blocks_by.html.erb +++ b/app/views/user_blocks/blocks_by.html.erb @@ -1,3 +1,13 @@ -

<%= t('user_block.blocks_by.heading', :name => @this_user.display_name) %>

+<% @title = t(".title", :name => @user.display_name) %> -<%= render :partial => 'blocks', :locals => { :show_revoke_link => (@user and @user.moderator?), :show_user_name => true, :show_creator_name => false } %> +<% content_for :heading_class, "pb-0" %> +<% content_for :heading do %> +

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

+ <%= render :partial => "navigation" %> +<% end %> + +<% unless @user_blocks.empty? %> +<%= render :partial => "blocks" %> +<% else %> +

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

+<% end %>