Sha256: 4a0f68e3f07a74eb43cd475bf295d0106e3b3cb8d0925e1a9bb6e023f16ad0bf

Contents?: true

Size: 1.24 KB

Versions: 42

Compression:

Stored size: 1.24 KB

Contents

= link_to "Add New Category", new_admin_category_path, class: 'btn btn-inverse pull-right action-btn'
.clear
.table-panel
  %table.table.admin-posts-table
    %thead
      %tr
        %th= sortable_column "Name"
        %th= sortable_column "Added at", column: :created_at
        %th Added by
        %th Shown in navbar?
        %th= sortable_column "Weight", column: :navbar_weight
        %th= sortable_column "Count", column: "post_count"

    %tbody
      - if @categories.empty?
        %tr.empty
          %td{colspan: "6"}
            No categories

      - @categories.each do |category|
        %tr
          %td= link_to truncate(category.name, length: 40), edit_admin_category_path(category)
          %td= category.created_at.to_s(:slashes_with_time)
          %td
            - if category.created_by
              = link_to category.created_by.try(:byline), edit_admin_user_path(category.created_by)
          %td
            - if category.display_in_navbar?
              = icon 'check'

          %td= category.navbar_weight
          %td
            - if category.post_count == 0
              %span 0
            - else
              = link_to category.post_count, admin_posts_path(filters: {category_ids: [category.id]})

= paginate @categories

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
virgo-0.3.17 app/views/virgo/admin/categories/index.haml
virgo-0.3.16 app/views/virgo/admin/categories/index.haml
virgo-0.3.15 app/views/virgo/admin/categories/index.haml
virgo-0.3.14 app/views/virgo/admin/categories/index.haml
virgo-0.3.13 app/views/virgo/admin/categories/index.haml
virgo-0.3.12 app/views/virgo/admin/categories/index.haml
virgo-0.3.11 app/views/virgo/admin/categories/index.haml
virgo-0.3.10 app/views/virgo/admin/categories/index.haml
virgo-0.3.9 app/views/virgo/admin/categories/index.haml
virgo-0.3.8 app/views/virgo/admin/categories/index.haml
virgo-0.3.7 app/views/virgo/admin/categories/index.haml
virgo-0.3.6 app/views/virgo/admin/categories/index.haml
virgo-0.3.4 app/views/virgo/admin/categories/index.haml
virgo-0.3.3 app/views/virgo/admin/categories/index.haml
virgo-0.3.2 app/views/virgo/admin/categories/index.haml
virgo-0.3.1 app/views/virgo/admin/categories/index.haml
virgo-0.3 app/views/virgo/admin/categories/index.haml
virgo-0.2.9 app/views/virgo/admin/categories/index.haml
virgo-0.2.8 app/views/virgo/admin/categories/index.haml
virgo-0.2.7 app/views/virgo/admin/categories/index.haml