1 <% @title = t('.title',
2 :block_on => h(@user_block.user.display_name),
3 :block_by => h(@user_block.creator.display_name)) %>
5 <% content_for :heading do %>
6 <h1><%= raw t('.heading',
8 h(@user_block.user.display_name),
9 user_path(@user_block.user)),
11 h(@user_block.creator.display_name),
12 user_path(@user_block.creator))) %></h1>
15 <% if @user_block.ends_at > Time.now %>
17 <%= t('.time_future', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
20 <%= form_for :revoke, :url => { :action => "revoke" } do |f| %>
21 <%= f.error_messages %>
23 <%= check_box_tag 'confirm', 'yes' %>
24 <%= label_tag 'confirm', t('.confirm') %>
27 <%= submit_tag t('.revoke') %>
33 <%= t('.past', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>