mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add short site description on login page title
This commit is contained in:
@@ -51,6 +51,14 @@ class StaticController < ApplicationController
|
||||
return
|
||||
end
|
||||
|
||||
unless @title.present?
|
||||
@title = if SiteSetting.short_site_description.present?
|
||||
"#{SiteSetting.title} - #{SiteSetting.short_site_description}"
|
||||
else
|
||||
SiteSetting.title
|
||||
end
|
||||
end
|
||||
|
||||
if I18n.exists?("static.#{@page}")
|
||||
render html: I18n.t("static.#{@page}"), layout: !request.xhr?, formats: [:html]
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user