- image_url = nil
- if defined?(image)
  - image_url = image.source.url if defined?(image) && image.present?
- elsif (asset.class.has_images? || asset.class.has_image?) && asset.first_image_source_url.present?
  - image_url = asset.first_image_source_url

- if image_url
  = image_tag image_url, class: 'ui avatar image'
- else
  i class="#{asset.class.icon_class || 'folder'} large icon"


- image_url = nil
- if defined?(image) && image.present?
  - image_url = image.source.url if defined?(image) && image.present?
- elsif (asset.class.has_images? || asset.class.has_image?) && asset.first_image_source_url.present?
  - image_url = asset.first_image_source_url

- if image_url
  = image_tag image_url, class: 'ui avatar image'
- else
  i class="#{asset.class.icon_class || 'folder'} large icon"


Fix issue where images weren't being displayed as icons
Fix issue where images weren't being displayed as icons

neo4j-examples/graph_starter,neo4j-examples/graph_starter,neo4j-examples/graph_starter