1 <h1><%= t('user_block.show.heading',
2 :block_on => @user_block.user.display_name,
3 :block_by => @user_block.moderator.display_name) %></h1>
5 <% if @user_block.revoker %>
7 <b><%= t'user_block.show.revoker' %></b>
8 <%= link_to h(@user_block.revoker.display_name), :controller => 'user', :action => 'view', :display_name => @user_block.revoker.display_name %>
13 <% if @user_block.end_at > Time.now %>
14 <%= t('user_block.show.time_future', :time => distance_of_time_in_words_to_now(@user_block.end_at)) %>
16 <%= t('user_block.show.time_past', :time => distance_of_time_in_words_to_now(@user_block.end_at)) %>
20 <% if @user_block.needs_view %>
21 <p><%= t'user_block.show.needs_view' %></p>
25 <b><%= t'user_block.show.reason' %></b>
26 <%=h @user_block.reason %>
30 <% if @user_block.end_at > Time.now.getutc %>
31 <% if @user and @user.id == @user_block.moderator_id %>
32 <%= link_to t('user_block.show.edit'), edit_user_block_path(@user_block) %> |
34 <% if @user and @user.moderator? %>
35 <%= link_to(t('user_block.show.revoke'),{:controller => 'user_blocks', :action => 'revoke', :id => @user_block.id}) %> |
38 <%= link_to t('user_block.show.back'), user_blocks_path %>