diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 56996a41201..8bd509f1837 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -341,6 +341,18 @@ module ApplicationHelper end end + def application_logo_dark_url + @application_logo_dark_url ||= begin + if dark_scheme_id != -1 + if mobile_view? && SiteSetting.site_mobile_logo_dark_url != application_logo_url + SiteSetting.site_mobile_logo_dark_url + elsif !mobile_view? && SiteSetting.site_logo_dark_url != application_logo_url + SiteSetting.site_logo_dark_url + end + end + end + end + def login_path "#{Discourse.base_path}/login" end diff --git a/app/views/application/_header.html.erb b/app/views/application/_header.html.erb index 9c2e59328ad..d93fca7585d 100644 --- a/app/views/application/_header.html.erb +++ b/app/views/application/_header.html.erb @@ -5,7 +5,12 @@