mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user