666e7934a6
This commit introduces importmaps. They allow to use modern javacript ESM within rails without webpack, yarn etc. see https://github.com/rails/importmap-rails for more details. Co-authored-by: Philipp Rothmann <philipprothmann@posteo.de> Co-authored-by: FGU <fgu@pragma-shift.net>
30 lines
918 B
Text
30 lines
918 B
Text
!!! 5
|
|
%html(lang='#{I18n.locale}')
|
|
%head
|
|
%meta(charset="utf-8")
|
|
%meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1")
|
|
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
|
%title= [t('layouts.foodsoft'), yield(:title)].join(" - ")
|
|
= csrf_meta_tags
|
|
= stylesheet_link_tag "application", :media => "all"
|
|
//%link(href="images/favicon.ico" rel="shortcut icon")
|
|
= yield(:head)
|
|
= foodcoop_css_tag
|
|
|
|
|
|
%body
|
|
= yield
|
|
|
|
/
|
|
Javascripts
|
|
\==================================================
|
|
/ Placed at the end of the document so the pages load faster
|
|
= javascript_importmap_tags
|
|
= javascript_include_tag "application_legacy"
|
|
|
|
:javascript
|
|
I18n.defaultLocale = "#{I18n.default_locale}";
|
|
I18n.locale = "#{I18n.locale}";
|
|
I18n.fallbacks = true;
|
|
= yield(:javascript)
|
|
= raw FoodsoftConfig[:webstats_tracking_code]
|