mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:52:46 +08:00
FIX: Don't use theme colors for digest unsubscribe footer links
This commit is contained in:
parent
747fa94853
commit
e6e5ce3c54
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user