1 <% @title = t('.title',
2 :block_on => @user_block.user.display_name,
3 :block_by => @user_block.creator.display_name) %>
5 <% content_for :heading do %>
6 <h1><%= raw t('.heading',
7 :block_on => link_to(h(@user_block.user.display_name),
8 user_path(@user_block.user)),
9 :block_by => link_to(h(@user_block.creator.display_name),
10 user_path(@user_block.creator))) %></h1>
11 <ul class='secondary-actions clearfix'>
12 <% if @user_block.ends_at > Time.now.getutc %>
13 <% if current_user and current_user.id == @user_block.creator_id %>
14 <li><%= link_to t('.edit'), edit_user_block_path(@user_block) %></li>
16 <% if current_user and current_user.moderator? %>
17 <li><%= link_to(t('.revoke'), { :controller => 'user_blocks', :action => 'revoke', :id => @user_block.id }) %></li>
20 <li><%= link_to t('.back'), user_blocks_path %></li>
24 <% if @user_block.revoker %>
26 <b><%= t '.revoker' %></b>
27 <%= link_to h(@user_block.revoker.display_name), user_path(@user_block.revoker) %>
31 <p><b><%= t '.created' %></b>: <%= raw t '.ago', :time => friendly_date(@user_block.created_at) %></p>
33 <p><b><%= t '.status' %></b>: <%= block_status(@user_block) %></p>
35 <p><b><%= t '.reason' %></b></p>
36 <div class="richtext"><%= @user_block.reason.to_html %></div>