2010-05-11 21:38:52 +00:00
|
|
|
- title t('.title')
|
|
|
|
|
|
|
|
- content_for :submenu do
|
|
|
|
= render 'admin/shared/menu/settings'
|
|
|
|
|
|
|
|
- content_for :buttons do
|
2010-09-22 12:50:01 +00:00
|
|
|
= admin_button_tag t('admin.snippets.index.new'), new_admin_snippet_url, :class => 'new'
|
2010-07-13 20:01:40 +00:00
|
|
|
= 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-09-22 12:50:01 +00:00
|
|
|
%h3!= t('.snippets')
|
|
|
|
- if @snippets.empty?
|
|
|
|
%p.no-items!= t('.no_items', :url => new_admin_snippet_url)
|
|
|
|
- else
|
|
|
|
%ul#snippets-list.list
|
|
|
|
= render @snippets
|
|
|
|
|
|
|
|
%br
|
|
|
|
|
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
|
2010-07-06 00:05:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
- if not @flash_assets.empty?
|
|
|
|
%br
|
|
|
|
|
2010-07-21 23:56:42 +00:00
|
|
|
%h3!= t('.flashes')
|
2010-07-06 00:05:47 +00:00
|
|
|
%ul.assets
|
|
|
|
= render :partial => 'asset', :collection => @flash_assets
|
|
|
|
%li.clear
|