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-10-10 21:59:56 +00:00
|
|
|
= admin_button_tag t('admin.theme_assets.index.all'), all_admin_theme_assets_url, :class => 'show'
|
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?
|
2010-10-29 15:12:57 +00:00
|
|
|
%p.no-items!= t('admin.snippets.index.no_items', :url => new_admin_snippet_url)
|
2010-09-22 12:50:01 +00:00
|
|
|
- else
|
2010-10-07 00:45:41 +00:00
|
|
|
%ul.list.theme-assets
|
2010-09-22 12:50:01 +00:00
|
|
|
= render @snippets
|
|
|
|
|
|
|
|
%br
|
|
|
|
|
2010-07-21 23:56:42 +00:00
|
|
|
%h3!= t('.css_and_js')
|
2010-10-07 00:45:41 +00:00
|
|
|
- if @js_and_css_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
|
2010-10-07 00:45:41 +00:00
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @js_and_css_assets
|
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-10-07 00:45:41 +00:00
|
|
|
- if @assets[:images].nil?
|
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
|
2010-10-07 00:45:41 +00:00
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @assets[:images]
|
2010-07-06 00:05:47 +00:00
|
|
|
|
2010-10-07 00:45:41 +00:00
|
|
|
- if @assets[:fonts]
|
|
|
|
%br
|
|
|
|
|
|
|
|
%h3!= t('.fonts')
|
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @assets[:fonts]
|
2010-07-06 00:05:47 +00:00
|
|
|
|
2011-02-18 23:51:57 +00:00
|
|
|
- if @assets[:medias]
|
2010-07-06 00:05:47 +00:00
|
|
|
%br
|
|
|
|
|
2011-02-18 23:51:57 +00:00
|
|
|
%h3!= t('.medias')
|
2010-10-07 00:45:41 +00:00
|
|
|
%ul.list.theme-assets
|
2011-02-18 23:51:57 +00:00
|
|
|
= render :partial => 'asset', :collection => @assets[:medias]
|
2010-10-07 00:45:41 +00:00
|
|
|
|