X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ba53dc7b04b4f081f748f2c506b25a3a6563f63d..60dd5ce6e6e4e3222920fa9d6804c25deae3529c:/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 e69de29bb..7fef69b57 100644 --- a/app/views/user_blocks/revoke_all.html.erb +++ b/app/views/user_blocks/revoke_all.html.erb @@ -0,0 +1,27 @@ +<% @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)) %>

+<% 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.primary t(".revoke") %> + <% end %> + +<% else %> +

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

+<% end %>