]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/new.html.erb
We don't need the @notice hack - we can use flash.now to achieve the same thing.
[rails.git] / app / views / user_blocks / new.html.erb
index 470d60e8f2c1693a90f0fcf40c6c521df008e2a6..3d3e6855c5cf835d8bffc82eafbd5a882de849be 100644 (file)
@@ -1,11 +1,15 @@
-<h1><%= t('user_block.new.title', :name => h(@this_user.display_name)) %></h1>
+<% @title = t 'user_block.new.title', :name => h(@this_user.display_name) %>
+<h1><%= t('user_block.new.heading',
+          :name => link_to(
+                           h(@this_user.display_name),
+                           {:controller => 'user', :action => 'view', :display_name => @this_user.display_name})) %></h1>
 
 <% form_for(@user_block) do |f| %>
   <%= f.error_messages %>
 
   <p>
     <%= f.label :reason, t('user_block.new.reason', :name => @this_user.display_name) %><br />
-    <%= f.text_area :reason %>
+    <%= f.text_area :reason, :cols => 80, :rows => 5 %>
   </p>
   <p>
     <%= label_tag 'user_block_period', t('user_block.new.period') %><br />
@@ -21,4 +25,4 @@
   </p>
 <% end %>
 
-<%= link_to 'Back', user_blocks_path %>
+<%= link_to t('user_block.new.back'), user_blocks_path %>