1 <% @title = t('user_block.revoke.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('user_block.revoke.heading',
8 h(@user_block.user.display_name),
9 {:controller => 'user', :action => 'view', :display_name => @user_block.user.display_name}),
11 h(@user_block.creator.display_name),
12 {:controller => 'user', :action => 'view', :display_name => @user_block.creator.display_name})) %></h1>
15 <% if @user_block.ends_at > Time.now %>
17 <%= t('user_block.revoke.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('user_block.revoke.confirm') %>
27 <%= submit_tag t('user_block.revoke.revoke') %>
33 <%= t('user_block.revoke.past', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>