Refactor public editing note to avoid raw html in the translations
This commit is contained in:
parent
08196ed429
commit
c7e9888bb6
2 changed files with 21 additions and 5 deletions
|
@ -65,8 +65,18 @@
|
|||
<% end %>
|
||||
|
||||
<% unless current_user.data_public? %>
|
||||
<a name="public"></a>
|
||||
<h2><%= t ".public editing note.heading" %></h2>
|
||||
<%= t ".public editing note.html" %>
|
||||
<%= button_to t(".make edits public button"), user_go_public_path, :class => "btn btn-primary" %>
|
||||
<hr class="mb-3" />
|
||||
<a name="public"></a>
|
||||
<h2><%= t ".public editing note.heading" %></h2>
|
||||
<p>
|
||||
<%= t ".public editing note.currently_not_public" %>
|
||||
<strong><%= t ".public editing note.only_public_can_edit" %></strong>
|
||||
<%= t ".public editing note.find_out_why_html", :link => link_to(t(".public editing note.find_out_why"),
|
||||
t(".public editing note.find_out_why_url")) %>
|
||||
</p>
|
||||
<ul>
|
||||
<li><%= t ".public editing note.email_not_revealed" %></li>
|
||||
<li><%= t ".public editing note.not_reversible" %></li>
|
||||
</ul>
|
||||
<%= button_to t(".make edits public button"), user_go_public_path, :class => "btn btn-primary" %>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue