engine/app/views/admin/theme_assets/images.html.haml

15 lines
547 B
Plaintext

#theme-images.asset-picker
%h2!= t('.title')
.actions
= admin_button_tag t('admin.theme_assets.index.new'), admin_theme_assets_url(:json), :class => 'button small add', :id => 'upload-link'
- if @images.empty?
%p.no-items!= t('.no_items')
%ul.list.theme-assets
= render 'asset', :asset => current_site.theme_assets.build(:updated_at => Time.now, :local_path => 'images/new.jpg', :content_type => 'image'), :edit => false
= render :partial => 'asset', :collection => @images, :locals => { :edit => false }
%li.clear