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