X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3af16f6337b52546297e7e09a1aba9b0e1df7e15..1cb92c9d2aa3ae59688fcd1107af0b8c70743fc2:/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 c92fe74ec..c2832e348 100644 --- a/app/views/user_blocks/new.html.erb +++ b/app/views/user_blocks/new.html.erb @@ -1,8 +1,8 @@ -<% @title = t ".title", :name => h(@user.display_name) %> +<% @title = t ".title", :name => @user.display_name %> <% content_for :heading do %> -
<%= 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| [block_duration_in_words(h.hours), h.to_s] }, params[:user_block_period])) %>
<%= f.check_box :needs_view %> @@ -21,7 +21,7 @@
<%= hidden_field_tag "display_name", @user.display_name %> - <%= f.submit t(".submit") %> + <%= f.submit %>
<% end %>