Sha256: fd754f43072a08baac6f205d30c6502c2f4926103c2b46f87493a15c5220134d

Contents?: true

Size: 1.5 KB

Versions: 3

Compression:

Stored size: 1.5 KB

Contents

- title 'Media'

- if @assets.empty?
  .columns
    .empty-default{ ng: { hide: 'assetCount() > 0' } }
      %h2 No uploads
      %p Upload images, documents, videos. Get started by uploading your first file.
      = link_to ficon(:plus, 'New upload'), push_type.new_asset_path, class: 'button radius success'

- else
  %div{ ng: { controller: 'AssetListCtrl', init: "assets=#{ @assets.all.to_json }; assetUrl='#{ push_type.edit_asset_path('~id') }'" } }
    .large-8.columns
      %section
        %ul.asset-list.small-block-grid-2.medium-block-grid-4
          %li{ ng: { repeat: 'asset in assets' } }
            %article.asset-list-item
              %a{ ng: { href: '{{ editUrl(asset) }}' } }
                .preview
                  %img{ alt: '{{ asset.file_name }}', ng: { src: '{{ previewthumbUrl(asset) }}' } }
                .title {{ asset.description_or_file_name }}

    .large-4.columns
      .side-panel{ :'side-panel' => true }
        .padded
          .pagination-centered
            .pagination-stats {{ assetCount() }} items - Page #{ @assets.current_page } of #{ @assets.total_pages }
            = paginate @assets
        .cta.text-center
          = link_to ficon(:plus, 'New upload'), push_type.new_asset_path, class: 'button radius success'
          - if @assets.current_page == 1
            .asset-upload
              .dropzone{ asset: { upload: push_type.upload_assets_path, maxfiles: 10 } }
                .prompt Drag files to quickly upload them…
                .icon= ficon(:upload_cloud)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
push_type_admin-0.1.1 app/views/push_type/assets/index.html.haml
push_type_admin-0.1.0 app/views/push_type/assets/index.html.haml
push_type_admin-0.1.0.beta3 app/views/push_type/assets/index.html.haml