Sha256: 37ba690def4898f55b87ba5f02848e0136bff2c9f53c6f8dbe94a744ece03de8

Contents?: true

Size: 1.48 KB

Versions: 13

Compression:

Stored size: 1.48 KB

Contents

%script{ type: 'text/html', id: 'content_asset_picker' }

  %h2!= t('.title')

  .filter-and-search
    .button-groups.asset-types
      - Locomotive::ContentAsset.types_for_content_editing.each do |type|
        %button.btn{ data: { type: type } }= t(".types.#{type}")
      %button.btn{ data: { type: 'other'} }= t('.types.others')

    .search-bar
      %input{ type: 'text', name: 'query', placeholder: t('.placeholder_search') }
      %i.icon-search

  %p.no-items{ style: 'display: none' }!= t('.no_items')

  %ul.list.content-assets{ style: 'display: none' }
    %li.clear

  .dialog-actions
    = link_to t('locomotive.buttons.close'), '#', id: 'close-link'

    .button-wrapper.upload
      = form_tag content_assets_path(:json), class: 'quick-upload' do
        = file_field_tag 'content_asset[source]', multiple: 'multiple'
        = link_to t('locomotive.content_assets.image_picker.upload'), content_assets_path(:json), class: 'new', id: 'upload-link'

%script{ type: 'text/html', id: 'content_asset' }

  {{#if uploading}}
  %h4 {{filename}}
  .uploading
    .progress-bar
       

  {{else}}

  %h4
    = link_to '{{filename}}', '{{url}}', alt: '{{full_filename}}', title: '{{full_filename}}'

  {{#if with_thumbnail}}
  .image
    .inside
      %img{ src: '{{vignette_url}}' }
  {{else}}
  .icon{ class: '{{content_type}}' }
    .inside
      {{content_type_text}}
  {{/if}}

  .actions
    = link_to_icon :trash, '#', class: 'remove', data: { confirm: t('locomotive.messages.confirm') }

  {{/if}}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.6 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.5 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.4 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.3 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.2 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.1 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.0 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/content_assets/_picker.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/content_assets/_picker.html.haml