Sha256: a50739f928629741ce657c20f32769224f7b546e471d30247e4c66378509d6ff

Contents?: true

Size: 1.37 KB

Versions: 57

Compression:

Stored size: 1.37 KB

Contents

- assets ||= @assets
- page ||= @page
- with_pagination ||= false

- if assets.empty?
  %p
    = t("clipped_extension.no_assets")
- else
  - if with_pagination && assets.respond_to?(:total_pages) && assets.total_pages > 1
    = pagination_for(assets, pagination_parameters.merge(:depaginate => false, :params => {:controller => 'admin/assets', :action => 'index', :id => nil, :format => 'js'}))

  %ul
    - assets.each_with_index do |asset, index|
      - asset_type = asset.image? ? "image" : "link"
      %li{:class => "#{asset_type} asset", :id => "asset_#{asset.id}"}
        .front
          .thumbnail= image_tag asset.thumbnail(:thumbnail)
        .back
          .title
            = asset.title
          %ul.actions
            - if @page
              %li= asset_insertion_link(asset)
              %li= asset_attachment_link(asset)
            - else
              %li= link_to t('clipped_extension.edit'), admin_asset_path(asset), :class => 'edit'
              %li= link_to t("clipped_extension.remove"), remove_admin_asset_path(asset), :class => "delete"

  - if with_pagination && assets.respond_to?(:total_pages) && assets.total_pages > 1
    = pagination_for(assets, pagination_parameters.merge(:depaginate => false, :param_name => 'p', :params => {:controller => 'admin/assets', :action => 'index', :id => nil, :format => 'js', :page_id => (page && page.id), :pp => assets.per_page }))

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
trusty-cms-6.0.5 app/views/admin/assets/_asset_table.html.haml
trusty-cms-6.0.4 app/views/admin/assets/_asset_table.html.haml
trusty-cms-6.0.3 app/views/admin/assets/_asset_table.html.haml
trusty-cms-6.0.2 app/views/admin/assets/_asset_table.html.haml
trusty-cms-6.0.1 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.6.1 app/views/admin/assets/_asset_table.html.haml
trusty-cms-6.0.0 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.6.0 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.5.9 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.5.8 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.5.7 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.5.6 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.5.5.1 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.5.1 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.5 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.4.4 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.4.3 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.4.2 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.4.1 app/views/admin/assets/_asset_table.html.haml
trusty-cms-5.4.0 app/views/admin/assets/_asset_table.html.haml