Sha256: 10f3c7212512c53451df9214b15d3169dcb8ee479ae7c8dccf780da24a63be29

Contents?: true

Size: 456 Bytes

Versions: 12

Compression:

Stored size: 456 Bytes

Contents

- asset = effective_asset.asset
- asset.aws_acl = 'authenticated-read' if effective_asset.is_private?

- if asset.nil?
  %img{:src => '#'}
- elsif asset.image?
  = effective_asset_image_tag(asset, nil, :class => effective_asset.html_class)
- else
  %span.effective-assets-asset-link{data: {'content-type' => asset.content_type}}
    = effective_asset_link_to(asset, nil, :class => effective_asset.html_class, :title => effective_asset.link_title.presence)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_assets-1.6.2 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.6.1 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.6.0 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.9 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.8 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.7 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.6 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.5 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.4 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.3 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.2 app/views/effective/snippets/_effective_asset.html.haml
effective_assets-1.5.1 app/views/effective/snippets/_effective_asset.html.haml