Sha256: 9693dadb5b9ee78a33f13217af120181f83ba816488c9f8ee5924bdde756bda9

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 KB

Contents

- @window_title = "Library"
- @page_title = "#{link_to "Asset Library", admin_asset_category_path(:category => 'all' , :page => 1 )} > Collections"

.row-fluid
  = render :partial => "/gluttonberg/admin/asset_library/shared/sidebar"
  .span9
    .row-fluid
      .page-header
        %h1
          = @page_title.html_safe
      .subnav
        = sub_nav do
          = nav_link("New Collection", new_admin_collection_url )

      - if @collections.empty?
        %p.empty No collections available
      - else
        - unless @collections.empty?
          .accordion#accordion_for_collections
            - for collection in @collections
              - unless @category.blank? || @category.asset_type_ids.blank?
                - assets = collection.assets.where({:asset_type_id => @category.asset_type_ids })
              - else
                - assets = collection.assets
              - if assets.count > 0
                .accordion-group
                  .accordion-heading
                    %a{ :class=>"accordion-toggle no-ajax" , "data-toggle" => "collapse" , "data-parent" => "#accordion_for_collections" , "data-target" => "#collection-#{collection.id}", "href" => "#collection-#{collection.id}"}
                      = "#{collection.name} ( #{pluralize(assets.count,'asset')} )"
                  .accordion-body{:id => "collection-#{collection.id}" , :class => "collapse  in"}
                    .accordion-inner{"content-loaded" => "false" , "data-id" => collection.id}



:javascript
  initCollectionAccordion();

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/admin/asset_library/collections/index.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/admin/asset_library/collections/index.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/admin/asset_library/collections/index.html.haml
gluttonberg-core-2.6.4 app/views/gluttonberg/admin/asset_library/collections/index.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/admin/asset_library/collections/index.html.haml