From 7fb4c7d89dc39bcb33322eb22a7028ab804757b0 Mon Sep 17 00:00:00 2001 From: Emma Winston Date: Tue, 1 Oct 2019 16:45:17 +0100 Subject: [PATCH] Only show hero widget on /about page if there's a custom hero or thumbnail uploaded --- app/views/about/show.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/about/show.html.haml b/app/views/about/show.html.haml index 8988493ce..e86eeddfe 100644 --- a/app/views/about/show.html.haml +++ b/app/views/about/show.html.haml @@ -49,8 +49,9 @@ = render 'login' .hero-widget - .hero-widget__img - = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title + - if @instance_presenter.hero.present? || @instance_presenter.thumbnail.present? + .hero-widget__img + = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url, alt: @instance_presenter.site_title - if @instance_presenter.site_short_description.present? .hero-widget__text