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

36 lines
786 B
Plaintext
Raw Normal View History

2010-05-11 21:38:52 +00:00
- title t('.title')
- content_for :submenu do
= render 'admin/shared/menu/settings'
- content_for :buttons do
= admin_button_tag :new, new_admin_theme_asset_url, :class => 'new'
2010-05-11 21:38:52 +00:00
2010-07-21 23:56:42 +00:00
%p!= t('.help')
2010-05-11 21:38:52 +00:00
2010-07-21 23:56:42 +00:00
%h3!= t('.css_and_js')
2010-05-11 21:38:52 +00:00
- if @non_image_assets.empty?
2010-07-21 23:56:42 +00:00
%p.no-items!= t('.no_items', :url => new_admin_theme_asset_url)
2010-05-11 21:38:52 +00:00
- else
%ul.assets
= render :partial => 'asset', :collection => @non_image_assets
%li.clear
2010-07-21 23:56:42 +00:00
2010-05-11 21:38:52 +00:00
%br
2010-07-21 23:56:42 +00:00
%h3!= t('.images')
2010-05-11 21:38:52 +00:00
- if @image_assets.empty?
2010-07-21 23:56:42 +00:00
%p.no-items!= t('.no_items', :url => new_admin_theme_asset_url)
2010-05-11 21:38:52 +00:00
- else
%ul.assets
= render :partial => 'asset', :collection => @image_assets
%li.clear
- if not @flash_assets.empty?
%br
2010-07-21 23:56:42 +00:00
%h3!= t('.flashes')
%ul.assets
= render :partial => 'asset', :collection => @flash_assets
%li.clear