Sha256: 650bf17e437000ea7dc970bebc9f96601f3e74f3a60cb8f56ac31d2e693d97f7
Contents?: true
Size: 1.54 KB
Versions: 14
Compression:
Stored size: 1.54 KB
Contents
- title 'Media' %asset-index{ assets: assets_array(@assets).to_json, :'edit-path' => push_type.edit_asset_path('~id'), :'inline-template' => true } %div .large-8.columns - if @assets.empty? .empty-default{ :'v-show' => 'assets.length == 0' } %h2 No uploads %p Upload images, documents, videos. Get started by uploading your first file. %section %ul.asset-list.small-block-grid-2.medium-block-grid-4 %li{ :'v-for' => 'asset in assets' } %article.asset-list-item %a{ :'v-bind:href' => 'editUrl(asset)' } .preview %img{ alt: '{{ asset.file_name }}', :'v-bind:src' => 'asset.preview_thumb_url' } .title {{ asset.description_or_file_name }} .large-4.columns .side-panel{ :'side-panel' => true } .padded .pagination-centered .pagination-stats {{ assets.length }} items - Page #{ @assets.current_page } of #{ [@assets.total_pages, 1].max } = 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{ :'v-asset-upload' => true, :'upload-path' => push_type.upload_assets_path, :maxfiles => 10 } .prompt Drag files to quickly upload them… .icon= ficon(:upload_cloud) .text-button = link_to ficon(:trash, 'Trash bin'), push_type.trash_assets_path
Version data entries
14 entries across 14 versions & 1 rubygems