DEV: Rename hilight to highlight (#13526)

This commit is contained in:
Jarek Radosz 2021-06-25 18:05:50 +02:00 committed by GitHub
parent b4f0a0fb94
commit 61472d6aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -662,7 +662,7 @@ class UserNotifications < ActionMailer::Base
message = email_post_markdown(post) + (reached_limit ? "\n\n#{I18n.t "user_notifications.reached_limit", count: SiteSetting.max_emails_per_day_per_user}" : "")
end
first_footer_classes = "hilight"
first_footer_classes = "highlight"
if (allow_reply_by_email && user.staged) || (user.suspended? || user.staged?)
first_footer_classes = ""
end

View File

@ -185,7 +185,7 @@ module Email
def format_html
correct_first_body_margin
correct_footer_style
correct_footer_style_hilight_first
correct_footer_style_highlight_first
reset_tables
html_lang = SiteSetting.default_locale.sub("_", "-")
@ -376,9 +376,9 @@ module Email
end
end
def correct_footer_style_hilight_first
def correct_footer_style_highlight_first
footernum = 0
@fragment.css('.footer.hilight').each do |element|
@fragment.css('.footer.highlight').each do |element|
linknum = 0
element.css('a').each do |inner|
# we want the first footer link to be specially highlighted as IMPORTANT