mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 00:17:17 +08:00
DEV: Initial parts for a redesigned /about page (#27996)
This commit introduces the foundation for a new design for the /about page that we're currently working on. The current version will remain available and still be the default until we finish the new version and are ready to roll out. To opt into the new version right now, add one or more group to the `experimental_redesigned_about_page_groups` site setting and members in those groups will get the new version. Internal topic: t/128545.
This commit is contained in:
@ -54,6 +54,16 @@ class About
|
||||
SiteSetting.site_description
|
||||
end
|
||||
|
||||
def extended_site_description
|
||||
SiteSetting.extended_site_description_cooked
|
||||
end
|
||||
|
||||
def banner_image
|
||||
url = SiteSetting.about_banner_image&.url
|
||||
return if url.blank?
|
||||
GlobalPath.full_cdn_url(url)
|
||||
end
|
||||
|
||||
def moderators
|
||||
@moderators ||= User.where(moderator: true, admin: false).human_users.order("last_seen_at DESC")
|
||||
end
|
||||
|
Reference in New Issue
Block a user