1 <% @title = t('user_block.show.title',
2 :block_on => @user_block.user.display_name,
3 :block_by => @user_block.creator.display_name) %>
4 <h1><%= raw t('user_block.show.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>
11 <% if @user_block.revoker %>
13 <b><%= t'user_block.show.revoker' %></b>
14 <%= link_to h(@user_block.revoker.display_name), :controller => 'user', :action => 'view', :display_name => @user_block.revoker.display_name %>
18 <p><b><%= t'user_block.show.status' %></b>: <%= block_status(@user_block) %></p>
20 <p><b><%= t'user_block.show.reason' %></b></p>
21 <%= htmlize(@user_block.reason) %>
23 <% if @user_block.ends_at > Time.now.getutc %>
24 <% if @user and @user.id == @user_block.creator_id %>
25 <%= link_to t('user_block.show.edit'), edit_user_block_path(@user_block) %> |
27 <% if @user and @user.moderator? %>
28 <%= link_to(t('user_block.show.revoke'),{:controller => 'user_blocks', :action => 'revoke', :id => @user_block.id}) %> |
31 <%= link_to t('user_block.show.back'), user_blocks_path %>