mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:42:46 +08:00
UX: Make category link text black in digest emails
This commit is contained in:
parent
6ab1720779
commit
72efcc8e86
|
@ -73,7 +73,7 @@ module UserNotificationsHelper
|
|||
|
||||
if opts[:only_stripe]
|
||||
result << "<a href='#{category_url}' style='background-color: ##{category.color}; font-size: 12px; padding: 2px 1px; font-weight: bold; margin: 0; width: 2px; white-space:nowrap;'> </a>"
|
||||
result << "<a href='#{category_url}' style='font-size: 12px; font-weight: bold; margin-left: 3px;'>#{category.name}</a>"
|
||||
result << "<a href='#{category_url}' style='font-size: 12px; font-weight: bold; margin-left: 3px; color: #222;'>#{category.name}</a>"
|
||||
else
|
||||
if category.parent_category.present?
|
||||
result << "<a href='#{category_url}' style='background-color: ##{category.parent_category.color}; font-size: 12px; padding: 4px 2px; font-weight: bold; margin: 0; width: 2px; white-space:nowrap;'> </a>"
|
||||
|
|
|
@ -73,6 +73,6 @@
|
|||
<div class='footer'>
|
||||
<%=raw(t :'user_notifications.digest.unsubscribe',
|
||||
site_link: html_site_link,
|
||||
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url, key: @user.temporary_key))) %>
|
||||
unsubscribe_link: link_to(t('user_notifications.digest.click_here'), email_unsubscribe_url(host: Discourse.base_url, key: @user.temporary_key))) %>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user