From 6997b3c5ce6d2c89dd273316f5055c60df0ca15b Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Thu, 22 Aug 2024 13:47:19 +0300 Subject: [PATCH] FIX: Hide heading when there's no custom description (#28470) In the new /about page, when there's no extended description provided by the admin, the "About" heading above the description should not be displayed. --- .../javascripts/discourse/app/components/about-page.gjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/about-page.gjs b/app/assets/javascripts/discourse/app/components/about-page.gjs index 42be96476b9..dbdf7af4552 100644 --- a/app/assets/javascripts/discourse/app/components/about-page.gjs +++ b/app/assets/javascripts/discourse/app/components/about-page.gjs @@ -218,8 +218,11 @@ export default class AboutPage extends Component { {{/each}} -

{{i18n "about.simple_title"}}

-
{{htmlSafe @model.extended_site_description}}
+ + {{#if @model.extended_site_description}} +

{{i18n "about.simple_title"}}

+
{{htmlSafe @model.extended_site_description}}
+ {{/if}} {{#if @model.admins.length}}