X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3443533ce3836673b0533c8474717a41e7f107fe..ca719af262380a906103e7aec9befb4c903693a1:/app/views/user_blocks/revoke_all.html.erb diff --git a/app/views/user_blocks/revoke_all.html.erb b/app/views/user_blocks/revoke_all.html.erb index 982792ddd..f9a17d3e6 100644 --- a/app/views/user_blocks/revoke_all.html.erb +++ b/app/views/user_blocks/revoke_all.html.erb @@ -1,8 +1,24 @@ -<% @title = t ".title", - :block_on => @user.display_name %> +<% @title = t ".title", :block_on => @user.display_name %> <% content_for :heading do %> -

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

+

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

+<% end %> + +<% unless @user.blocks.active.empty? %> + + <%= bootstrap_form_for :revoke_all, :url => { :action => "revoke_all" } do |f| %> +
+
+ <%= check_box_tag "confirm", "yes", false, { :class => "form-check-input" } %> + <%= label_tag "confirm", t(".confirm", + :active_blocks => t(".active_blocks", + :count => @user.blocks.active.count)), { :class => "form-check-label" } %> +
+
+ + <%= f.submit t(".revoke"), :class => "btn btn-danger" %> + <% end %> + +<% else %> +

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

<% end %>