Sha256: 3b1b2bc65e308e5d30624d6f10a3801d4cb0906fb6eed1b8c5391d7b678cf05d

Contents?: true

Size: 636 Bytes

Versions: 4

Compression:

Stored size: 636 Bytes

Contents

%section.posts
  .admin-title-header
    %h2 Posts
    = link_to "Add New", exposition.new_admin_post_path
  %table 
    %thead
      %tr
        %th Title
        %th Article
        %th Author
        %th Slug
        %th Tags
        %th Manage
    %tbody
      - @posts.each do |post|
        %tr.post{class: "#{post.css_classes}"}
          %td= "#{post.title}"
          %td= truncate(post.summary, length: 40, separator: ' ')
          %td= "#{post.author.name}"
          %td= "#{post.slug}"
          %td= "#{post.tags.to_a.to_sentence}"
          %td= link_to "Edit", exposition.edit_admin_post_path(post)
  = paginate @posts

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exposition-0.0.5.7.pre.alpha app/views/exposition/admin/posts/index.html.haml
exposition-0.0.5.6.pre.alpha app/views/exposition/admin/posts/index.html.haml
exposition-0.0.5.5.pre.alpha app/views/exposition/admin/posts/index.html.haml
exposition-0.0.5.4.pre.alpha app/views/exposition/admin/posts/index.html.haml