app/views/layouts/_html_head.slim in stones-1.2.2 vs app/views/layouts/_html_head.slim in stones-1.2.3
- old
+ new
@@ -1,18 +1,16 @@
-- version = Rails.version.to_f
+ruby:
+ version = Rails.version.to_f
+ title = (APP || 'app').capitalize
- if version < 7.0
- title = (APP || 'app').capitalize
= favicon_link_tag
= stylesheet_link_tag @stylesheet || 'application', media: 'all'
= stylesheet_link_tag 'print', media: 'print'
= javascript_include_tag 'application'
= csrf_meta_tags
- - return
-
-title = (APP || 'app').capitalize
-meta name="viewport" content="width=device-width,initial-scale=1"
-= csrf_meta_tags
-= csp_meta_tag
-
-= stylesheet_link_tag 'application', 'data-turbo-track': 'reload'
-= javascript_importmap_tags
+- else
+ meta name="viewport" content="width=device-width,initial-scale=1"
+ = stylesheet_link_tag 'application', 'data-turbo-track': 'reload'
+ = javascript_importmap_tags
+ = csrf_meta_tags
+ = csp_meta_tag