You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
806 B

7 years ago
7 years ago
7 years ago
  1. - if theme
  2. - if theme[:pack] != 'common' && theme[:common]
  3. = render partial: 'layouts/theme', object: theme[:common]
  4. - if theme[:pack]
  5. = javascript_pack_tag theme[:flavour] ? "flavours/#{theme[:flavour]}/#{theme[:pack]}" : "core/#{theme[:pack]}", integrity: true, crossorigin: 'anonymous'
  6. - if theme[:skin]
  7. - if !theme[:flavour] || theme[:skin] == 'default'
  8. = stylesheet_pack_tag theme[:flavour] ? "flavours/#{theme[:flavour]}/#{theme[:pack]}" : "core/#{theme[:pack]}", integrity: true, media: 'all'
  9. - else
  10. = stylesheet_pack_tag "skins/#{theme[:flavour]}/#{theme[:skin]}/#{theme[:pack]}"
  11. - if theme[:preload]
  12. - theme[:preload].each do |link|
  13. %link{ href: asset_pack_path("#{link}.js"), crossorigin: 'anonymous', rel: 'preload', as: 'script' }/