Skip asset pipeline for site logo file/url (#255)

Fixes #238
The ruby pipeline validation causes an exception if the file is missing, so pointing to an invalid file/url for the site logo makes every page crash
This commit is contained in:
Rasmus
2024-01-15 19:56:08 +01:00
committed by GitHub
parent 68bb4ad895
commit 376e232f71

View File

@@ -3,7 +3,7 @@
<%=
link_to root_path, class: 'brand' do
app_name = content_tag :span, @tenant.site_name
logo = image_tag(@tenant.site_logo ? @tenant.site_logo : "", class: 'logo')
logo = image_tag(@tenant.site_logo ? @tenant.site_logo : "", class: 'logo', skip_pipeline: true)
if @tenant_setting.brand_display == "name_and_logo"
logo + app_name