From aa9e9a5eb1a66c04a377f7f9f590f1c2e5e6592e Mon Sep 17 00:00:00 2001
From: Andy Allan <%= link_to h(block.creator.display_name), user_path(block.creator) %>
<% end %>
- <%=h truncate(block.reason) %>
- <%=h block_status(block) %>
+ <%= h truncate(block.reason) %>
+ <%= h block_status(block) %>
<% if block.revoker_id.nil? %>
<%= t('.not_revoked') %>
diff --git a/app/views/user_blocks/_blocks.html.erb b/app/views/user_blocks/_blocks.html.erb
index 01e54de21..db6eea2a8 100644
--- a/app/views/user_blocks/_blocks.html.erb
+++ b/app/views/user_blocks/_blocks.html.erb
@@ -15,7 +15,7 @@
<% end %>
- <%= 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 %>
diff --git a/app/views/user_blocks/new.html.erb b/app/views/user_blocks/new.html.erb
index bd941babc..2967ecaf0 100644
--- a/app/views/user_blocks/new.html.erb
+++ b/app/views/user_blocks/new.html.erb
@@ -1,8 +1,7 @@
<% @title = t '.title', :name => h(@user.display_name) %>
<% content_for :heading do %>
<%= raw t('.heading',
- :name => link_to(
- h(@user.display_name),
+ :name => link_to(h(@user.display_name),
user_path(@user))) %>
<% end %>
<%= form_for(@user_block) do |f| %>
@@ -14,7 +13,7 @@
<%= label_tag 'user_block_period', t('.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] )) %>
+ <%= 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])) %>
<%= f.check_box :needs_view %> diff --git a/app/views/user_blocks/not_found.html.erb b/app/views/user_blocks/not_found.html.erb index 6aad7eef3..d5846cc11 100644 --- a/app/views/user_blocks/not_found.html.erb +++ b/app/views/user_blocks/not_found.html.erb @@ -1,3 +1,3 @@ -
<%= t'.sorry', :id => params[:id] %>
+<%= t '.sorry', :id => params[:id] %>
<%= link_to t('.back'), user_blocks_path %> diff --git a/app/views/user_blocks/revoke.html.erb b/app/views/user_blocks/revoke.html.erb index c7eee6703..d4786b2e5 100644 --- a/app/views/user_blocks/revoke.html.erb +++ b/app/views/user_blocks/revoke.html.erb @@ -4,11 +4,9 @@ <% content_for :heading do %>- <%= t'.revoker' %> + <%= t '.revoker' %> <%= link_to h(@user_block.revoker.display_name), user_path(@user_block.revoker) %>
<% end %> -<%= t'.created' %>: <%= raw t'.ago', :time => friendly_date(@user_block.created_at) %>
+<%= t '.created' %>: <%= raw t '.ago', :time => friendly_date(@user_block.created_at) %>
-<%= t'.status' %>: <%= block_status(@user_block) %>
+<%= t '.status' %>: <%= block_status(@user_block) %>
-<%= t'.reason' %>
+<%= t '.reason' %>