From b151f24dd8c940fd00c4fdd5ad06bc0ba873f763 Mon Sep 17 00:00:00 2001 From: Emma Winston Date: Tue, 1 Oct 2019 16:53:32 +0100 Subject: [PATCH] =?UTF-8?q?Only=20show=20header=20image=20container=20on?= =?UTF-8?q?=20/about/more=20page=20if=20there's=20a=20custom=20hero=20or?= =?UTF-8?q?=20thum=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/about/more.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml index a2f7a3d98..f369820c0 100644 --- a/app/views/about/more.html.haml +++ b/app/views/about/more.html.haml @@ -8,8 +8,9 @@ .grid-3 .column-0 .public-account-header.public-account-header--no-bar - .public-account-header__image - = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title, class: 'parallax' + - if @instance_presenter.hero.present? || @instance_presenter.thumbnail.present? + .public-account-header__image + = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url, alt: @instance_presenter.site_title, class: 'parallax' .column-1 .landing-page__call-to-action{ dir: 'ltr' }