]> git.openstreetmap.org Git - rails.git/blob - app/views/user_blocks/revoke_all.html.erb
Merge remote-tracking branch 'upstream/pull/4272'
[rails.git] / app / views / user_blocks / revoke_all.html.erb
1 <% @title = t ".title",
2               :block_on => @user.display_name %>
3
4 <% content_for :heading do %>
5   <h1><%= t ".heading_html",
6             :block_on => link_to(@user.display_name,
7                                  user_path(@user)) %></h1>
8 <% end %>
9
10 <% unless @user.blocks.active.empty? %>
11
12   <%= bootstrap_form_for :revoke_all, :url => { :action => "revoke_all" } do |f| %>
13     <div class="mb-3">
14       <div class="form-check">
15         <%= check_box_tag "confirm", "yes", false, { :class => "form-check-input" } %>
16         <%= label_tag "confirm", t(".confirm",
17                                    :active_blocks => t(".active_blocks",
18                                                        :count => @user.blocks.active.count)), { :class => "form-check-label" } %>
19       </div>
20     </div>
21
22     <%= f.primary t(".revoke") %>
23   <% end %>
24
25 <% else %>
26 <p><%= t ".empty", :name => @user.display_name %></p>
27 <% end %>