FEATURE: add short site description on login page title

This commit is contained in:
Arpit Jalan
2019-10-14 11:39:14 +05:30
parent f92a6f7ac5
commit 815edf6f4d
3 changed files with 12 additions and 2 deletions

View File

@@ -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