FIX: Don't use theme colors for digest unsubscribe footer links

This commit is contained in:
Kris 2020-02-11 15:52:38 -05:00
parent 747fa94853
commit e6e5ce3c54
2 changed files with 4 additions and 4 deletions

View File

@ -27,8 +27,8 @@ module UserNotificationsHelper
logo_url
end
def html_site_link(color)
"<a href='#{Discourse.base_url}' style='color: ##{color}'>#{@site_name}</a>"
def html_site_link
"<a href='#{Discourse.base_url}'>#{@site_name}</a>"
end
def first_paragraphs_from(html)

View File

@ -405,9 +405,9 @@
<tr>
<td align="center">
<%=raw(t 'user_notifications.digest.unsubscribe',
site_link: html_site_link(@anchor_color),
site_link: html_site_link,
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'), "#{Discourse.base_url}/email/unsubscribe/#{@unsubscribe_key}", {:style=>"color: ##{@anchor_color}"})) %>
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), "#{Discourse.base_url}/email/unsubscribe/#{@unsubscribe_key}")) %>
</td>
</tr>
</table>