graph_starter 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/graph_starter/application.coffee.erb +6 -0
- data/app/assets/stylesheets/graph_starter/application.scss +9 -1
- data/app/models/graph_starter/asset.rb +8 -0
- data/app/presenters/graph_starter/asset_presenter.rb +1 -1
- data/app/views/graph_starter/assets/_body.html.slim +2 -2
- data/app/views/layouts/graph_starter/application.html.slim +2 -0
- data/lib/graph_starter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 607af2e39ee8bab6805a2ddbe049eae9e2ef60ae
|
4
|
+
data.tar.gz: bd9ab7766e43b64d055f9c782e03c289c6db9f7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09a163db74319019480d65cbd712146aa745ab4094d3b56cbb22a42209e029216fa36f001a48e6621de44b15a85bca872aef667ad87f1744acc0bdb5b47b60bd
|
7
|
+
data.tar.gz: 85acb28502748349cd67f66f0e3294d543b2cb53b119047f2a973374ab08da6ba52cf5ef3a4f991c5755eb21aad2ea165566facb5e1cfa8dc359894593e2f54d
|
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
ready = ->
|
11
|
+
$('#loading-spinner').hide()
|
12
|
+
|
11
13
|
$("img").error ->
|
12
14
|
console.log 'imgError!!!!'
|
13
15
|
|
@@ -23,3 +25,7 @@ ready = ->
|
|
23
25
|
|
24
26
|
$(document).ready ready
|
25
27
|
$(document).on 'page:load', ready
|
28
|
+
|
29
|
+
$(document).on 'page:fetch', (e) ->
|
30
|
+
$('#loading-spinner').css 'display', 'inline-block'
|
31
|
+
|
@@ -17,7 +17,7 @@ module GraphStarter
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def main_column_exists?
|
20
|
-
@main_column_exists ||= asset.class.has_images? && asset.
|
20
|
+
@main_column_exists ||= ((asset.class.has_images? || asset.class.has_image?) && asset.image_array.present?) || asset.body.present?
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
- if asset.body.present?
|
2
2
|
= asset.body
|
3
|
-
- if asset.
|
3
|
+
- if asset.image_array.present?
|
4
4
|
.ui.link.cards
|
5
|
-
- asset.
|
5
|
+
- asset.image_array.each do |image|
|
6
6
|
.card
|
7
7
|
.image = image_tag image.source_url, class: 'ui image tiny rounded'
|
8
8
|
.content
|