diff --git a/app/helpers/user_notifications_helper.rb b/app/helpers/user_notifications_helper.rb index 51a5e7ffe..24ca2ef22 100644 --- a/app/helpers/user_notifications_helper.rb +++ b/app/helpers/user_notifications_helper.rb @@ -28,8 +28,8 @@ module UserNotificationsHelper logo_url end - def html_site_link - "#{@site_name}" + def html_site_link(color) + "#{@site_name}" end def first_paragraph_from(html) diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rb index 517294278..a338e607f 100644 --- a/app/mailers/user_notifications.rb +++ b/app/mailers/user_notifications.rb @@ -62,6 +62,7 @@ class UserNotifications < ActionMailer::Base @site_name = SiteSetting.email_prefix.presence || SiteSetting.title @header_color = ColorScheme.hex_for_name('header_background') + @anchor_color = ColorScheme.hex_for_name('tertiary') @last_seen_at = short_date(@user.last_seen_at || @user.created_at) # A list of topics to show the user diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 959562b2e..304250e12 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -1,7 +1,7 @@
- + <%- if logo_url.blank? %> <%= SiteSetting.title %> <%- else %> @@ -11,7 +11,7 @@ |
- <%= raw(t 'user_notifications.digest.why', site_link: html_site_link, last_seen_at: @last_seen_at) %>
+ <%= raw(t 'user_notifications.digest.why', site_link: html_site_link(@anchor_color), last_seen_at: @last_seen_at) %>
<%- if @featured_topics.present? %>
@@ -20,7 +20,7 @@ <%- @featured_topics.each_with_index do |t, i| %>
- <%= raw unescape_emoji(t.title) %>
+ <%= raw unescape_emoji(t.title) %>
@@ -43,7 +43,7 @@
<%- @new_topics.each do |t| %>
<%= category_badge(t.category, inline_style: true, absolute_url: true) %>
<%- @new_by_category.first(10).each do |c| %>
- <%= c[0].name %> <%= c[1] %>
+ <%= c[0].name %> <%= c[1] %>
<%- end %>
@@ -72,6 +72,6 @@
|