2011-02-27 11:18:48 +00:00
|
|
|
- title t('.title')
|
|
|
|
|
|
|
|
- content_for :submenu do
|
2011-07-25 21:07:32 +00:00
|
|
|
= render_cell 'admin/settings_menu', :show
|
2011-02-27 11:18:48 +00:00
|
|
|
|
|
|
|
- content_for :buttons do
|
2011-06-26 23:02:48 +00:00
|
|
|
= admin_button_tag t('admin.snippets.index.new'), new_admin_snippet_url, :class => 'new' if can?(:manage, Snippet)
|
|
|
|
= admin_button_tag :new, new_admin_theme_asset_url, :class => 'new' if can?(:manage, ThemeAsset)
|
2011-02-27 11:18:48 +00:00
|
|
|
|
|
|
|
%p!= t('.help')
|
|
|
|
|
2011-06-26 23:02:48 +00:00
|
|
|
- if can?(:manage, Snippet)
|
|
|
|
%h3!= t('.snippets')
|
|
|
|
- if @snippets.empty?
|
|
|
|
%p.no-items!= t('admin.snippets.index.no_items', :url => new_admin_snippet_url)
|
|
|
|
- else
|
|
|
|
%ul.list.theme-assets
|
|
|
|
= render @snippets
|
2011-02-27 11:18:48 +00:00
|
|
|
|
2011-06-26 23:02:48 +00:00
|
|
|
%br
|
2011-02-27 11:18:48 +00:00
|
|
|
|
2011-06-26 23:02:48 +00:00
|
|
|
- if can?(:manage, ThemeAsset)
|
|
|
|
%h3!= t('.css_and_js')
|
|
|
|
- if @js_and_css_assets.empty?
|
|
|
|
%p.no-items!= t('.no_items', :url => new_admin_theme_asset_url)
|
|
|
|
- else
|
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @js_and_css_assets
|
2011-02-27 11:18:48 +00:00
|
|
|
|
2011-06-26 23:02:48 +00:00
|
|
|
%br
|
2011-02-27 11:18:48 +00:00
|
|
|
|
|
|
|
%h3!= t('.images')
|
|
|
|
- if @assets[:images].nil?
|
|
|
|
%p.no-items!= t('.no_items', :url => new_admin_theme_asset_url)
|
|
|
|
- else
|
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @assets[:images]
|
|
|
|
|
2011-06-26 23:02:48 +00:00
|
|
|
- if can?(:manage, ThemeAsset)
|
|
|
|
- if @assets[:fonts]
|
|
|
|
%br
|
2011-02-27 11:18:48 +00:00
|
|
|
|
2011-06-26 23:02:48 +00:00
|
|
|
%h3!= t('.fonts')
|
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @assets[:fonts]
|
2011-02-27 11:18:48 +00:00
|
|
|
|
|
|
|
- if @assets[:medias]
|
|
|
|
%br
|
|
|
|
|
|
|
|
%h3!= t('.medias')
|
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @assets[:medias]
|