Sha256: 74e97c6ad5e572c6c7092ef4c709eb33cd6be3193523edcc8562a42853b1734a

Contents?: true

Size: 1.48 KB

Versions: 3

Compression:

Stored size: 1.48 KB

Contents

- @page_title = "Galleries"

.row-fluid
  = render :partial => "/gluttonberg/admin/content/main/sidebar"
  .span9
    .row-fluid
      .page-header
        %h1
          = @page_title.html_safe
      .subnav
        = sub_nav do
          - if can? :manage, Gluttonberg::Gallery
            = nav_link('New', new_admin_gallery_path)

      - if @galleries.empty?
        %p.empty No Galleries
      - else
        %table{:cellpadding => 0, :cellspacing => 0, :summary => "Galleries", :class => "table table-bordered "}
          %thead
            %tr
              %th Gallery
              %th
                Slug
              %th
                Published At
              %th
                Created At
              %th.controls Controls
          %tbody
            - @galleries.each do |gallery|
              %tr
                %td
                  = link_to gallery.title, edit_admin_gallery_path(gallery)
                %td
                  = gallery.slug
                %td
                  - unless gallery.published_at.blank?
                    = gallery.published_at.strftime("%d/%m/%Y")
                %td
                  - unless gallery.created_at.blank?
                    = gallery.created_at.strftime("%d/%m/%Y")
                %td.controls
                  = link_to "Edit", edit_admin_gallery_path(gallery), :class => "btn "
                  - if can? :destroy , gallery
                    = link_to "Delete", delete_admin_gallery_path(gallery), :class => "btn btn-danger"

Version data entries

3 entries across 3 versions & 1 rubygems

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