Sha256: dd314b7342ccd4fcd9a6d384fee3ab6c9afff84745ed96447da0eaa24f05c496

Contents?: true

Size: 609 Bytes

Versions: 17

Compression:

Stored size: 609 Bytes

Contents

- per_row = local_assigns[:per_row] || 6
- asset_counter = local_assigns[:asset_counter] || 0
- edit = local_assigns.key?(:edit) ? edit : true

%li{ :class => "#{asset.new_record? ? 'new-asset' : 'asset'} #{'last' if (asset_counter + 1) % per_row == 0}"}
  %h4= link_to truncate(asset.slug, :length => 18), edit ? edit_admin_theme_asset_path(asset) : asset.source.url
  .image
    .inside
      = vignette_tag(asset)
  - if edit
    .actions
      = link_to image_tag('admin/list/icons/cross.png'), admin_theme_asset_path(asset), :class => 'remove', :confirm => t('admin.messages.confirm'), :method => :delete

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotive_cms-0.0.3.3 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.3.1 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.9 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.8 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.7 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.6 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.5 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.4 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.3 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.2 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2.1 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.2 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.1.4 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.1.3 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.1.2 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.1.1 app/views/admin/theme_assets/_asset.html.haml
locomotive_cms-0.0.1 app/views/admin/theme_assets/_asset.html.haml