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:
Osama Sayegh
2024-07-23 01:35:18 +03:00
committed by GitHub
parent 2d59795e28
commit 6039b513fe
10 changed files with 413 additions and 129 deletions

View File

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