<% if show_creator_name %>
<td class="<%= c1 %>"><%= link_to h(block.creator.display_name), user_path(block.creator) %></td>
<% end %>
- <td class="<%= c1 %>"><%=h truncate(block.reason) %></td>
- <td class="<%= c1 %>"><%=h block_status(block) %></td>
+ <td class="<%= c1 %>"><%= h truncate(block.reason) %></td>
+ <td class="<%= c1 %>"><%= h block_status(block) %></td>
<td class="<%= c1 %>">
<% if block.revoker_id.nil? %>
<%= t('.not_revoked') %>
<th></th>
<% end %>
</tr>
- <%= render :partial => 'block', :locals => {:show_revoke_link => show_revoke_link, :show_user_name => show_user_name, :show_creator_name => show_creator_name }, :collection => @user_blocks %>
+ <%= render :partial => 'block', :locals => { :show_revoke_link => show_revoke_link, :show_user_name => show_user_name, :show_creator_name => show_creator_name }, :collection => @user_blocks %>
</table>
<ul class='secondary-actions'>
<% @title = t '.title', :name => h(@user.display_name) %>
<% content_for :heading do %>
<h1><%= raw t('.heading',
- :name => link_to(
- h(@user.display_name),
+ :name => link_to(h(@user.display_name),
user_path(@user))) %></h1>
<% end %>
<%= form_for(@user_block) do |f| %>
</p>
<p>
<%= label_tag 'user_block_period', t('.period') %><br />
- <%= select_tag('user_block_period', options_for_select(UserBlock::PERIODS.collect { |h| [t('user_blocks.period', :count => h), h.to_s] }, params[:user_block_period] )) %>
+ <%= select_tag('user_block_period', options_for_select(UserBlock::PERIODS.collect { |h| [t('user_blocks.period', :count => h), h.to_s] }, params[:user_block_period])) %>
</p>
<p>
<%= f.check_box :needs_view %>
-<p><%= t'.sorry', :id => params[:id] %></p>
+<p><%= t '.sorry', :id => params[:id] %></p>
<%= link_to t('.back'), user_blocks_path %>
<% content_for :heading do %>
<h1><%= raw t('.heading',
- :block_on => link_to(
- h(@user_block.user.display_name),
+ :block_on => link_to(h(@user_block.user.display_name),
user_path(@user_block.user)),
- :block_by => link_to(
- h(@user_block.creator.display_name),
+ :block_by => link_to(h(@user_block.creator.display_name),
user_path(@user_block.creator))) %></h1>
<% end %>
<% content_for :heading do %>
<h1><%= raw t('.heading',
- :block_on => link_to(
- h(@user_block.user.display_name),
+ :block_on => link_to(h(@user_block.user.display_name),
user_path(@user_block.user)),
- :block_by => link_to(
- h(@user_block.creator.display_name),
+ :block_by => link_to(h(@user_block.creator.display_name),
user_path(@user_block.creator))) %></h1>
<ul class='secondary-actions clearfix'>
<% if @user_block.ends_at > Time.now.getutc %>
<li><%= link_to t('.edit'), edit_user_block_path(@user_block) %></li>
<% end %>
<% if current_user and current_user.moderator? %>
- <li><%= link_to(t('.revoke'),{:controller => 'user_blocks', :action => 'revoke', :id => @user_block.id}) %></li>
+ <li><%= link_to(t('.revoke'), { :controller => 'user_blocks', :action => 'revoke', :id => @user_block.id }) %></li>
<% end %>
<% end %>
<li><%= link_to t('.back'), user_blocks_path %></li>
<% if @user_block.revoker %>
<p>
- <b><%= t'.revoker' %></b>
+ <b><%= t '.revoker' %></b>
<%= link_to h(@user_block.revoker.display_name), user_path(@user_block.revoker) %>
</p>
<% end %>
-<p><b><%= t'.created' %></b>: <%= raw t'.ago', :time => friendly_date(@user_block.created_at) %></p>
+<p><b><%= t '.created' %></b>: <%= raw t '.ago', :time => friendly_date(@user_block.created_at) %></p>
-<p><b><%= t'.status' %></b>: <%= block_status(@user_block) %></p>
+<p><b><%= t '.status' %></b>: <%= block_status(@user_block) %></p>
-<p><b><%= t'.reason' %></b></p>
+<p><b><%= t '.reason' %></b></p>
<div class="richtext"><%= @user_block.reason.to_html %></div>