Sha256: 655c879fbca503a5572b26ef5ee1656103325c5b2ffd32abc23d77214759bb84

Contents?: true

Size: 1.21 KB

Versions: 14

Compression:

Stored size: 1.21 KB

Contents

- title 'Trash'

- breadcrumbs.add 'Trash', push_type_admin.trash_assets_path

- if @assets.empty?
  .columns
    .empty-default
      %h2 No trash
      = link_to ficon(:arrow_left, 'Back to media'), push_type_admin.assets_path, class: 'button radius secondary'

- else
  %div
    .large-8.columns
      %section
        %ul.asset-list.small-block-grid-2.medium-block-grid-4
          - for asset in @assets
            %li
              %article.asset-list-item
                = link_to push_type_admin.edit_asset_path(asset) do
                  .preview
                    = image_tag asset_preview_thumb_url(asset), alt: asset.file_name
                  .title= asset.description_or_file_name

    .large-4.columns
      .side-panel{ :'side-panel' => true }
        .padded
          .pagination-centered
            .pagination-stats
            = pluralize @assets.total_count, 'item'
            - unless @assets.total_count == 0
              \- Page #{ @assets.current_page } of #{ @assets.total_pages }
            = paginate @assets
        .cta.text-center
          = link_to ficon(:trash, 'Empty trash'), push_type_admin.trash_assets_path, method: 'delete', class: 'button radius alert', data: { confirm: true }
          

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_admin-0.12.1 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.12.0 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.12.0.beta.1 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.11.2 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.11.1 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.11.0.beta.2 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.11.0.beta.1 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.10.4 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.10.3 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.10.2 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.10.1 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.10.0 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.10.0.beta.5 app/views/push_type/admin/assets/trash.html.haml
push_type_admin-0.10.0.beta.3 app/views/push_type/admin/assets/trash.html.haml