comment out yield javascript for debugging

should be readded later again and might require this fix to load inline
javascript only after the modules are already loaded: https://stackoverflow.com/questions/71876873/rails-7-7-0-2-3-importmap-jquery-is-not-defined-in-view
This commit is contained in:
Philipp Rothmann 2023-01-27 12:27:42 +01:00
parent 045503f498
commit 69518f2bae
1 changed files with 10 additions and 7 deletions

View File

@ -8,10 +8,10 @@
= csrf_meta_tags = csrf_meta_tags
= stylesheet_link_tag "application", :media => "all" = stylesheet_link_tag "application", :media => "all"
//%link(href="images/favicon.ico" rel="shortcut icon") //%link(href="images/favicon.ico" rel="shortcut icon")
= javascript_importmap_tags
= yield(:head) = yield(:head)
= foodcoop_css_tag = foodcoop_css_tag
%body %body
= yield = yield
@ -19,10 +19,13 @@
Javascripts Javascripts
\================================================== \==================================================
/ Placed at the end of the document so the pages load faster / Placed at the end of the document so the pages load faster
= javascript_include_tag "application" = javascript_importmap_tags
:javascript
I18n.defaultLocale = "#{I18n.default_locale}"; -# = javascript_include_tag "application"
I18n.locale = "#{I18n.locale}";
I18n.fallbacks = true; -# :javascript
= yield(:javascript) -# I18n.defaultLocale = "#{I18n.default_locale}";
-# I18n.locale = "#{I18n.locale}";
-# I18n.fallbacks = true;
-# = yield(:javascript)
= raw FoodsoftConfig[:webstats_tracking_code] = raw FoodsoftConfig[:webstats_tracking_code]