X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5..7b2af50f4a12da6f18c4b5d89ee1264e252c6da9:/app/views/user_blocks/new.html.erb diff --git a/app/views/user_blocks/new.html.erb b/app/views/user_blocks/new.html.erb index 9ea63f885..f26a91c5c 100644 --- a/app/views/user_blocks/new.html.erb +++ b/app/views/user_blocks/new.html.erb @@ -1,15 +1,15 @@ -<% @title = t 'user_block.new.title', :name => h(@this_user.display_name) %> +<% @title = t 'user_block.new.title', :name => h(@user.display_name) %> <% content_for :heading do %>

<%= raw t('user_block.new.heading', :name => link_to( - h(@this_user.display_name), - {:controller => 'user', :action => 'view', :display_name => @this_user.display_name})) %>

+ h(@user.display_name), + user_path(@user))) %> <% end %> <%= form_for(@user_block) do |f| %> <%= f.error_messages %>

- <%= f.label :reason, t('user_block.new.reason', :name => @this_user.display_name) %>
+ <%= f.label :reason, t('user_block.new.reason', :name => @user.display_name) %>
<%= richtext_area :user_block, :reason, :cols => 80, :rows => 20 %>

@@ -21,7 +21,7 @@ <%= f.label :needs_view, t('user_block.new.needs_view') %>

- <%= hidden_field_tag 'display_name', @this_user.display_name %> + <%= hidden_field_tag 'display_name', @user.display_name %> <%= f.submit t('user_block.new.submit') %>

<% end %>