statixite 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4186a725b98cbada6914bb58c1bc75ff184b584
|
4
|
+
data.tar.gz: 43921f546edf72eb8af9993c98047c4e16c55095
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76966d032105e9d8a163e81df16421f307d159155d787c012d351861c276f0037550fbc181a5dca20f7d7f7c7cc3bf6b347fa35474e6ee79c4ccf16aaf698f88
|
7
|
+
data.tar.gz: dce0837a2e321e2ce7b7910d90131f71d46730589ecf2409fc9cde9d3e5111ea924e8437d01bcf64d59bb28f81a90f6442b7d8fec13e145655ad6408c7719555
|
@@ -8,5 +8,8 @@
|
|
8
8
|
= javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"
|
9
9
|
= yield :stylesheets
|
10
10
|
= stylesheet_link_tag "statixite/application", :media => "all"
|
11
|
-
|
11
|
+
- if Rails.env.development? || Rails.env.test?
|
12
|
+
= stylesheet_link_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets.find_asset("controllers/#{params[:controller]}_#{params[:action]}.css")
|
13
|
+
- else
|
14
|
+
= stylesheet_link_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets_manifest.files.map { |_,obj| obj }.map { |obj| obj["logical_path"] }.flatten.include?("controllers/#{params[:controller]}_#{params[:action]}.css")
|
12
15
|
= favicon_link_tag "statixite/favicon.ico"
|
@@ -14,14 +14,10 @@
|
|
14
14
|
= yield
|
15
15
|
= yield :pre_javascript
|
16
16
|
= javascript_include_tag "statixite/application"
|
17
|
-
|
17
|
+
|
18
|
+
- if Rails.env.development? || Rails.env.test?
|
19
|
+
= javascript_include_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets.find_asset("controllers/#{params[:controller]}_#{params[:action]}.js")
|
20
|
+
- else
|
21
|
+
= javascript_include_tag "controllers/#{params[:controller]}_#{params[:action]}" if Rails.application.assets_manifest.files.map { |_,obj| obj }.map { |obj| obj["logical_path"] }.flatten.include?("controllers/#{params[:controller]}_#{params[:action]}.js")
|
18
22
|
= render 'layouts/statixite/flash'
|
19
23
|
= yield :inline_javascript
|
20
|
-
:javascript
|
21
|
-
$(document).ready(function() {
|
22
|
-
$.notify('Beta Alert! Use at your own risk.', {
|
23
|
-
autoHide: false,
|
24
|
-
position: 'bottom right',
|
25
|
-
className: 'warn'
|
26
|
-
});
|
27
|
-
});
|
data/lib/statixite/version.rb
CHANGED