Only show hero widget on /about page if there's a custom hero or thumbnail uploaded

This commit is contained in:
Emma Winston 2019-10-01 16:45:17 +01:00
parent bcce240c18
commit 7fb4c7d89d

View File

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