Don't escape HTML in the message shown to anonymous users
This commit is contained in:
parent
db616d347a
commit
0033fcbf12
2 changed files with 3 additions and 4 deletions
|
@ -6,9 +6,8 @@
|
|||
</p>
|
||||
<% elsif !@user.data_public? %>
|
||||
<p><%= t 'site.edit.not_public' %></p>
|
||||
<p><%= t 'site.edit.not_public_description',
|
||||
:user_page => (link_to t('site.edit.user_page_link'), {:controller => 'user', :action => 'account', :display_name => @user.display_name, :anchor => 'public'}) %></p>
|
||||
<p><%= t 'site.edit.anon_edits', :link => link_to(t('site.edit.anon_edits_link_text'), t('site.edit.anon_edits_link')) %></p>
|
||||
<p><%= raw t 'site.edit.not_public_description', :user_page => (link_to t('site.edit.user_page_link'), {:controller => 'user', :action => 'account', :display_name => @user.display_name, :anchor => 'public'}) %></p>
|
||||
<p><%= raw t 'site.edit.anon_edits', :link => link_to(t('site.edit.anon_edits_link_text'), t('site.edit.anon_edits_link')) %></p>
|
||||
<% else %>
|
||||
<% content_for :greeting do %>
|
||||
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
<% unless @user.data_public? %>
|
||||
<a name="public"></a>
|
||||
<h2><%= t 'user.account.public editing note.heading' %></h2>
|
||||
<%= t 'user.account.public editing note.text' %>
|
||||
<%= raw t 'user.account.public editing note.text' %>
|
||||
<%= button_to t('user.account.make edits public button'), :action => :go_public %>
|
||||
<% end %>
|
||||
<br/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue