]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/edit.html.erb
Use lazy translation lookups for the user_blocks partials.
[rails.git] / app / views / user_blocks / edit.html.erb
index 0b928de548084ce449570cce3892e90b80512547..289f7a8316d1543ba5744360d353944175f39a73 100644 (file)
@@ -1,9 +1,8 @@
 <% @title = t 'user_block.edit.title', :name => h(@user_block.user.display_name) %>
 <% content_for :heading do %>
   <h1><%= raw t('user_block.edit.title',
-                :name => link_to(
-                                 h(@user_block.user.display_name),
-                                 {:controller => 'user', :action => 'view', :display_name => @user_block.user.display_name})) %></h1>
+                :name => link_to(h(@user_block.user.display_name),
+                                 user_path(@user_block.user))) %></h1>
   <ul class='secondary-actions clearfix'>
     <li><%= link_to t('user_block.edit.show'), @user_block %></li>
     <li><%= link_to t('user_block.edit.back'), user_blocks_path %></li>
@@ -28,4 +27,4 @@
   <p>
     <%= f.submit t('user_block.edit.submit') %>
   </p>
-<% end %>
\ No newline at end of file
+<% end %>