mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Offer site_logo_dark_url as an option for dark mode themes (#14361)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user