Sha256: a96e349d7f801e616c9bef9c62368504c396254fd68c40dc3b4f1265e5435020

Contents?: true

Size: 1.31 KB

Versions: 18

Compression:

Stored size: 1.31 KB

Contents

- @window_title = "Asset Library"
- params[:category] = params[:category].pluralize if params[:category] != "all" && params[:category] != "uncategorised"
- @page_title = "#{link_to "Asset Library", admin_asset_category_path(:category => 'all' , :page => 1 )} > #{params[:category].titleize}"

.row-fluid
  = render :partial => "/gluttonberg/admin/asset_library/shared/sidebar"
  .span9
    .row-fluid
      .page-header
        %h1
          = @page_title.html_safe
      .subnav
        = sub_nav do
          %li
            %a{:href => admin_asset_category_path(:category => 'all' , :page => 1 ), :class => "browseAll"}
              All
          - @categories.each do |category|
            %li
              - text = ( category.name == "uncategorised" ?  "Other" : category.name.pluralize.capitalize )
              - if text == "Audios"
                - text = "Audio"
              %a{:href => admin_asset_category_path(:category => category.name , :page => 1), :class => "browse#{text}"}
                = text

      = render :partial => "search_form"

      = render :partial => "/gluttonberg/admin/asset_library/shared/asset_panels" , :locals => { :type => "category" , :name_or_id =>  params[:category] , :sorter_url => admin_asset_category_path(:category => params[:category]) , :previous_page_title => params[:category] }

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.6.4 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.6.3 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.6.2 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.6.1 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.6.0 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.9 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.8 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.7 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.6 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.5 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.4 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.3 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.2 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5.1 app/views/gluttonberg/admin/asset_library/assets/category.html.haml
gluttonberg-core-2.5 app/views/gluttonberg/admin/asset_library/assets/category.html.haml