1 <% @title = t(".title",
2 :block_on => @user_block.user.display_name,
3 :block_by => @user_block.creator.display_name) %>
5 <% content_for :heading do %>
6 <h1><%= t(".heading_html",
7 :block_on => link_to(@user_block.user.display_name,
8 user_path(@user_block.user)),
9 :block_by => link_to(@user_block.creator.display_name,
10 user_path(@user_block.creator))) %></h1>
13 <% if @user_block.ends_at > Time.now %>
15 <%= t(".time_future", :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
18 <%= bootstrap_form_for :revoke, :url => { :action => "revoke" } do |f| %>
19 <div class="form-group">
20 <div class="form-check">
21 <%= check_box_tag "confirm", "yes", false, { :class => "form-check-input" } %>
22 <%= label_tag "confirm", t(".confirm"), { :class => "form-check-label" } %>
26 <%= f.primary t(".revoke") %>
31 <%= t(".past", :time => time_ago_in_words(@user_block.ends_at, :scope => :'datetime.distance_in_words_ago')) %>