Sha256: 5d1a37d44aebeb43d7050ab3d1f045dfbe2b652ffee83216d5f57a655160017b

Contents?: true

Size: 1.19 KB

Versions: 34

Compression:

Stored size: 1.19 KB

Contents

- title 'Trash'

- breadcrumbs.add 'Trash', push_type.trash_assets_path

- if @assets.empty?
  .columns
    .empty-default
      %h2 No trash
      = link_to ficon(:arrow_left, 'Back to media'), push_type.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.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.trash_assets_path, method: 'delete', class: 'button radius alert', data: { confirm: true }
          

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
push_type_admin-0.9.5 app/views/push_type/assets/trash.html.haml
push_type_admin-0.9.3 app/views/push_type/assets/trash.html.haml
push_type_admin-0.9.2 app/views/push_type/assets/trash.html.haml
push_type_admin-0.9.1 app/views/push_type/assets/trash.html.haml
push_type_admin-0.9.0 app/views/push_type/assets/trash.html.haml
push_type_admin-0.9.0.beta.4 app/views/push_type/assets/trash.html.haml
push_type_admin-0.9.0.beta.3 app/views/push_type/assets/trash.html.haml
push_type_admin-0.9.0.beta.2 app/views/push_type/assets/trash.html.haml
push_type_admin-0.8.2 app/views/push_type/assets/trash.html.haml
push_type_admin-0.8.1 app/views/push_type/assets/trash.html.haml
push_type_admin-0.8.0 app/views/push_type/assets/trash.html.haml
push_type_admin-0.8.0.beta.3 app/views/push_type/assets/trash.html.haml
push_type_admin-0.8.0.beta.2 app/views/push_type/assets/trash.html.haml
push_type_admin-0.8.0.beta.1 app/views/push_type/assets/trash.html.haml
push_type_admin-0.7.0 app/views/push_type/assets/trash.html.haml
push_type_admin-0.7.0.beta.1 app/views/push_type/assets/trash.html.haml
push_type_admin-0.6.0 app/views/push_type/assets/trash.html.haml
push_type_admin-0.6.0.beta.4 app/views/push_type/assets/trash.html.haml
push_type_admin-0.6.0.beta.3 app/views/push_type/assets/trash.html.haml
push_type_admin-0.6.0.beta.2 app/views/push_type/assets/trash.html.haml