2011-11-19 14:47:56 +00:00
|
|
|
%script{ :type => 'text/html', :id => 'content_asset_picker' }
|
|
|
|
|
|
|
|
%h2!= t('.title')
|
|
|
|
|
|
|
|
%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'
|
2011-11-19 23:54:33 +00:00
|
|
|
.button-wrapper.upload
|
2011-11-19 14:47:56 +00:00
|
|
|
= file_field_tag 'content_asset[source]'
|
|
|
|
= link_to t('.upload'), content_assets_url(:json), :class => 'new', :id => 'upload-link'
|
|
|
|
|
|
|
|
|
|
|
|
%script{ :type => 'text/html', :id => 'content_asset' }
|
|
|
|
|
|
|
|
%h4
|
2011-11-19 15:41:16 +00:00
|
|
|
= link_to '{{filename}}', '{{url}}', :alt => '{{full_filename}}', :title => '{{full_filename}}'
|
2011-11-19 14:47:56 +00:00
|
|
|
{{#if image}}
|
|
|
|
.image
|
|
|
|
.inside
|
|
|
|
%img{ :src => '{{vignette_url}}' }
|
|
|
|
{{else}}
|
|
|
|
.icon{ :class => '{{content_type}}' }
|
|
|
|
.inside
|
|
|
|
{{content_type_text}}
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
.actions
|
2011-11-19 15:41:16 +00:00
|
|
|
= link_to 'x', '#', :class => 'remove', :'data-confirm' => t('locomotive.messages.confirm')
|