2011-02-27 11:18:48 +00:00
|
|
|
- title t('.title')
|
|
|
|
|
|
|
|
- content_for :submenu do
|
2011-11-08 00:11:15 +00:00
|
|
|
= render_cell 'locomotive/settings_menu', :show
|
2011-02-27 11:18:48 +00:00
|
|
|
|
|
|
|
- content_for :buttons do
|
2011-11-08 00:11:15 +00:00
|
|
|
= admin_button_tag t('locomotive.snippets.index.new'), new_snippet_url, :class => 'new' if can?(manage, Locomotive::Snippet)
|
|
|
|
= admin_button_tag :new, new_theme_asset_url, :class => 'new' if can?(manage, Locomotive::ThemeAsset)
|
2011-02-27 11:18:48 +00:00
|
|
|
|
|
|
|
%p!= t('.help')
|
|
|
|
|
2011-11-08 00:11:15 +00:00
|
|
|
- if can?(manage, Locomotive::Snippet)
|
2011-06-26 23:02:48 +00:00
|
|
|
%h3!= t('.snippets')
|
|
|
|
- if @snippets.empty?
|
2011-10-31 23:44:23 +00:00
|
|
|
%p.no-items!= t('locomotive.snippets.index.no_items', :url => new_snippet_url)
|
2011-06-26 23:02:48 +00:00
|
|
|
- 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-11-08 00:11:15 +00:00
|
|
|
- if can?(manage, Locomotive::ThemeAsset)
|
2011-06-26 23:02:48 +00:00
|
|
|
%h3!= t('.css_and_js')
|
|
|
|
- if @js_and_css_assets.empty?
|
2011-10-31 23:44:23 +00:00
|
|
|
%p.no-items!= t('.no_items', :url => new_theme_asset_url)
|
2011-06-26 23:02:48 +00:00
|
|
|
- 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?
|
2011-10-31 23:44:23 +00:00
|
|
|
%p.no-items!= t('.no_items', :url => new_theme_asset_url)
|
2011-02-27 11:18:48 +00:00
|
|
|
- else
|
|
|
|
%ul.list.theme-assets
|
|
|
|
= render :partial => 'asset', :collection => @assets[:images]
|
|
|
|
|
2011-11-08 00:11:15 +00:00
|
|
|
- if can?(manage, Locomotive::ThemeAsset)
|
2011-06-26 23:02:48 +00:00
|
|
|
- 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]
|