Use lazy translation lookups for the user_blocks partials.
[rails.git] / app / views / user_blocks / revoke.html.erb
index c67f7cde26900b02da41cc694ec9c13ed366be69..f812ffff6cce318c15a18ddc1bac98fbea13bbb4 100644 (file)
@@ -6,10 +6,10 @@
   <h1><%= raw t('user_block.revoke.heading',
                 :block_on => link_to(
                                      h(@user_block.user.display_name),
-                                     {:controller => 'user', :action => 'view', :display_name => @user_block.user.display_name}),
+                                     user_path(@user_block.user)),
                 :block_by => link_to(
                                      h(@user_block.creator.display_name),
-                                     {:controller => 'user', :action => 'view', :display_name => @user_block.creator.display_name})) %></h1>
+                                     user_path(@user_block.creator))) %></h1>
 <% end %>
 
 <% if @user_block.ends_at > Time.now %>