mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
FIX: html links in text part of summary email
This commit is contained in:
parent
528eac5a07
commit
a5afc08363
|
@ -419,7 +419,7 @@ body, table, td, th, h1, h2, h3 {font-family: Helvetica, Arial, sans-serif !impo
|
|||
<div dir="<%= rtl? ? 'rtl' : 'ltr' %>" class='footer'>
|
||||
<%=raw(t 'user_notifications.digest.unsubscribe',
|
||||
site_link: html_site_link(@anchor_color),
|
||||
email_settings_url: Discourse.base_url + '/my/preferences/emails',
|
||||
email_preferences_link: link_to(t('user_notifications.digest.your_email_settings'), Discourse.base_url + '/my/preferences/emails'),
|
||||
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url, key: @unsubscribe_key), {:style=>"color: ##{@anchor_color}"})) %>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<%= digest_custom_text("above_footer") %>
|
||||
<%=raw(t :'user_notifications.digest.unsubscribe',
|
||||
site_link: site_link,
|
||||
email_settings_url: Discourse.base_url + '/my/preferences/emails',
|
||||
email_preferences_link: raw(@markdown_linker.create(t('user_notifications.digest.your_email_settings'), '/my/preferences/emails')),
|
||||
unsubscribe_link: raw(@markdown_linker.create(t('user_notifications.digest.click_here'), email_unsubscribe_url(key: @unsubscribe_key, only_path: true)))) %>
|
||||
|
||||
<%= raw(@markdown_linker.references) %>
|
||||
|
|
|
@ -2688,7 +2688,8 @@ en:
|
|||
popular_posts: "Popular Posts"
|
||||
more_new: "New for you"
|
||||
subject_template: "[%{email_prefix}] Summary"
|
||||
unsubscribe: "This summary is sent from %{site_link} when we haven't seen you in a while. Change <a href='%{email_settings_url}'>your email settings</a>, or %{unsubscribe_link} to unsubscribe."
|
||||
unsubscribe: "This summary is sent from %{site_link} when we haven't seen you in a while. Change %{email_preferences_link}, or %{unsubscribe_link} to unsubscribe."
|
||||
your_email_settings: "your email settings"
|
||||
click_here: "click here"
|
||||
from: "%{site_name} summary"
|
||||
preheader: "A brief summary since your last visit on %{last_seen_at}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user