graph_starter 0.12.0 → 0.12.1

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: 2e93b2fd5ab114bce65b7cd36d10356fcceb10d8
4
- data.tar.gz: 6d1cb374a9e762c72dd1936fbee87713e73ae465
3
+ metadata.gz: c41cbf6d5d0bc644e3653dbe91fc76f7ab263dc6
4
+ data.tar.gz: 4dc3b5012e30205a58ad800f0155294b558d56e3
5
5
  SHA512:
6
- metadata.gz: c6a8a9430df7817c48146f63821a7dac8453f726205e53e34cc3dc64855eecc8c1281a250fa64ed06bb560f28b1dc5f9f75b08a4c10d91fddd172c8f0106ac14
7
- data.tar.gz: 2fd86d7a0b3ad29214d240f0396f997f41da9a5058543e494931a67cedadeef0e2bde7b53d80f23c365ca8cca30516c8c80b757828b109406452e740ae8c5bda
6
+ metadata.gz: 0d7ac09b2f26160ce54202fb4d24cf1e09265ab6d370329dd546fa576c53d5db518e9d19a61a098452f6732ff1fa05df7a5fb4a101891e849d0b84e03c9fda29
7
+ data.tar.gz: 758fed6cf9765f6a7a9355123ed036863b4d709920776aa70931fe8b64ed96285a4e5d572ad91944e4885ecb7ae1d192a7bac036b46ee53e44261f42d2d8dc66
@@ -15,7 +15,7 @@
15
15
  .ui.middle.aligned.big.divided.list
16
16
  - Array(result).each do |object|
17
17
  .item
18
- i class="#{association.target_class.icon_class} icon"
19
18
  .content
19
+ = render partial: 'icon', locals: {asset: object}
20
20
  = link_to object.title, asset_path(object)
21
21
 
@@ -16,10 +16,7 @@
16
16
  .ui.relaxed.divided.list
17
17
  - categories[0,2].each do |category|
18
18
  .item
19
- - if (category.class.has_images? || category.class.has_image?) && category.first_image_source_url.present?
20
- = image_tag category.first_image_source_url, class: 'ui avatar image'
21
- - else
22
- i class="#{category.class.icon_class || 'folder'} large icon"
19
+ = render partial: 'icon', locals: {asset: category}
23
20
  .content
24
21
  = link_to category.name, asset_path(category)
25
22
  - if categories.size > 2
@@ -0,0 +1,5 @@
1
+ - if (asset.class.has_images? || asset.class.has_image?) && asset.first_image_source_url.present?
2
+ = image_tag asset.first_image_source_url, class: 'ui avatar image'
3
+ - else
4
+ i class="#{asset.class.icon_class || 'folder'} large icon"
5
+
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood
@@ -140,6 +140,7 @@ files:
140
140
  - app/views/graph_starter/assets/_card.html.slim
141
141
  - app/views/graph_starter/assets/_cards.html.slim
142
142
  - app/views/graph_starter/assets/_form.html.slim
143
+ - app/views/graph_starter/assets/_icon.html.slim
143
144
  - app/views/graph_starter/assets/_images.html.slim
144
145
  - app/views/graph_starter/assets/_property_items.html.slim
145
146
  - app/views/graph_starter/assets/_recommendations.html.slim