Sha256: 07baf37776dc28c47267e91e2dc90a56d32965f898ac7dd7d5a26d5d09a4f5a9

Contents?: true

Size: 1.34 KB

Versions: 3

Compression:

Stored size: 1.34 KB

Contents

- @window_title = "Content"
- @page_title = "Pages"

.row-fluid
  = render :partial => "/gluttonberg/admin/content/main/sidebar"
  .span9
    .row-fluid
      .page-header
        %h1
          %span.title
            = @page_title.html_safe
      .subnav.nav.nav-pills
        - if can? :manage_object , Gluttonberg::Page.new
          = link_to('Add New Page', new_admin_page_path , :class => "btn btn-primary")
          - if !@pages.blank? && can?(:reorder , Gluttonberg::Page)
            %a#saveNestableTree{:href => "Javascript:;", :class => "btn"}
              Save Page Order
            = link_to('Collapse All', "Javascript:;" , :class => "btn collapse_all")
            = link_to('Expand All', "Javascript:;" , :class => "btn expand_all")

      - if @pages.empty?
        %p.empty No Pages
      - else
        .nestable_dragtree
          %ol.header.dd-list
            %li.dd-item
              .dd-column.title
                Page
              .dd-column.author
                Author
              .dd-column.published_state
                Status
              .dd-column.actions
                 

          .dd{"data-id" => "pageTree", "data-url" => drag_tree_url, "data-saveButton" => "#saveNestableTree", :class => "#{(can?(:reorder , Gluttonberg::Page) ? "dd-sortable" : " " )}" }
            %ol.dd-list
              = page_table_rows(@pages)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/admin/content/pages/index.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/admin/content/pages/index.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/admin/content/pages/index.html.haml