* <title> for /blocks/new/*
* use h() to escape usernames
This commit is contained in:
parent
269ad0f52e
commit
7dbf68aa52
2 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
||||||
<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| %>
|
<% form_for(@user_block) do |f| %>
|
||||||
<%= f.error_messages %>
|
<%= f.error_messages %>
|
||||||
|
|
|
@ -1034,12 +1034,13 @@ en:
|
||||||
sorry: "Sorry, the user block with ID {{id}} could not be found."
|
sorry: "Sorry, the user block with ID {{id}} could not be found."
|
||||||
back: "Back to index"
|
back: "Back to index"
|
||||||
new:
|
new:
|
||||||
|
title: "Creating block on {{name}}"
|
||||||
|
heading: "Creating block on {{name}}"
|
||||||
reason: "The reason why {{name}} is being blocked. Please be as calm and as reasonable as possible, giving as much detail as you can about the situation, remembering that the message will be publicly visible. Bear in mind that not all users understand the community jargon, so please try to use laymans terms."
|
reason: "The reason why {{name}} is being blocked. Please be as calm and as reasonable as possible, giving as much detail as you can about the situation, remembering that the message will be publicly visible. Bear in mind that not all users understand the community jargon, so please try to use laymans terms."
|
||||||
period: "How long, starting now, the user will be blocked from the API for."
|
period: "How long, starting now, the user will be blocked from the API for."
|
||||||
submit: "Create block"
|
submit: "Create block"
|
||||||
tried_contacting: "I have contacted the user and asked them to stop."
|
tried_contacting: "I have contacted the user and asked them to stop."
|
||||||
tried_waiting: "I have given a reasonable amount of time for the user to respond to those communications."
|
tried_waiting: "I have given a reasonable amount of time for the user to respond to those communications."
|
||||||
title: "Creating block on {{name}}"
|
|
||||||
needs_view: "Does the user need to log in before this block will be cleared?"
|
needs_view: "Does the user need to log in before this block will be cleared?"
|
||||||
edit:
|
edit:
|
||||||
title: "Editing block on {{name}}"
|
title: "Editing block on {{name}}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue