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