Use the _html suffix to mark that we expect the translations to contain links. Unfortunately, we can't use the _html keys for the plain text emails, since the input options (e.g. username, url) will be html-escaped, before it is passed to the view. So we need to use non-html-suffix keys for the plaintext views, in most cases. Only when the translation options (e.g. url) are guaranteed to not contain any escapable characters can the same translation key be shared.
29 lines
882 B
Text
29 lines
882 B
Text
<p>
|
|
<%= t ".hi", :to_user => @to_user %>
|
|
</p>
|
|
<p>
|
|
<% if @owner %>
|
|
<%= t ".commented.your_changeset_html", :commenter => link_to_user(@commenter), :time => @time %>
|
|
<% else %>
|
|
<%= t ".commented.commented_changeset_html", :commenter => link_to_user(@commenter), :time => @time, :changeset_author => @changeset_author %>
|
|
<% end %>
|
|
<% if @changeset_comment %>
|
|
<%= t ".commented.partial_changeset_with_comment_html", :changeset_comment => tag.em(@changeset_comment) %>
|
|
<% else %>
|
|
<%= t ".commented.partial_changeset_without_comment" %>
|
|
<% end %>
|
|
</p>
|
|
|
|
<%= message_body do %>
|
|
<%= @comment.to_html %>
|
|
<% end %>
|
|
|
|
<p>
|
|
<%= t ".details_html", :url => link_to(@changeset_url, @changeset_url) %>
|
|
</p>
|
|
|
|
<% content_for :footer do %>
|
|
<p>
|
|
<%= t ".unsubscribe_html", :url => link_to(@changeset_url, @changeset_url, :style => "color: #222") %>
|
|
</p>
|
|
<% end %>
|