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)) %>
4 <h1><%= t('user_block.revoke.heading',
6 h(@user_block.user.display_name),
7 {:controller => 'user', :action => 'view', :display_name => @user_block.user.display_name}),
9 h(@user_block.creator.display_name),
10 {:controller => 'user', :action => 'view', :display_name => @user_block.creator.display_name})) %></h1>
12 <% if @user_block.ends_at > Time.now %>
14 <%= t('user_block.revoke.time_future', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
17 <% form_for :revoke, :url => { :action => "revoke" } do |f| %>
18 <%= f.error_messages %>
20 <%= check_box_tag 'confirm', 'yes' %>
21 <%= label_tag 'confirm', t('user_block.revoke.confirm') %>
24 <%= submit_tag t('user_block.revoke.revoke') %>
30 <%= t('user_block.revoke.past', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>