Sha256: c04ef32d6d5daf3d8c55ca2f95c531da41e7b87a01ff57cf9403383f8566cb9f

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

- title t('.title')

- content_for :submenu do
  = render 'admin/shared/menu/settings'

- content_for :buttons do
  = admin_button_tag t('admin.theme_assets.index.all'), all_admin_theme_assets_url, :class => 'show'
  = admin_button_tag t('admin.snippets.index.new'), new_admin_snippet_url, :class => 'new'
  = admin_button_tag :new, new_admin_theme_asset_url, :class => 'new'

%p!= t('.help')

%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

%br

%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

%br

%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]

- if @assets[:fonts]
  %br

  %h3!= t('.fonts')
  %ul.list.theme-assets
    = render :partial => 'asset', :collection => @assets[:fonts]

- if @assets[:media]
  %br

  %h3!= t('.media')
  %ul.list.theme-assets
    = render :partial => 'asset', :collection => @assets[:media]

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/views/admin/theme_assets/index.html.haml
locomotive_cms-1.0.0.beta app/views/admin/theme_assets/index.html.haml
locomotive_cms-0.0.4.beta12 app/views/admin/theme_assets/index.html.haml
locomotive_cms-0.0.4.beta11 app/views/admin/theme_assets/index.html.haml
locomotive_cms-0.0.4.beta10 app/views/admin/theme_assets/index.html.haml
locomotive_cms-0.0.4.beta9 app/views/admin/theme_assets/index.html.haml
locomotive_cms-0.0.4.beta8 app/views/admin/theme_assets/index.html.haml
locomotive_cms-0.0.4.beta7 app/views/admin/theme_assets/index.html.haml