Sha256: da8584fcef149566dbe098235811525b4076e808d815e193d800d523a82fcefd

Contents?: true

Size: 683 Bytes

Versions: 1

Compression:

Stored size: 683 Bytes

Contents

- title :index, CouchBlog::Post
- if @posts.any?
  table.list-table.table.table-striped
    thead
      tr
        th.title= CouchBlog::Post.human_attribute_name(:title)
        th.date= CouchBlog::Post.human_attribute_name(:date)
        th.action.edit
        th.action.destroy
    tbody
      - for post in @posts
        tr.post-row id="post-row-#{post.id}" class=cycle(:odd, :even)
          td.title= link_to post.title, couch_blog.admin_post_path(post)
          td.date=l post.date
          td.action.edit= table_edit post
          td.action.destroy= table_destroy post
- else
  = empty_result CouchBlog::Post
- page_links do
  = page_link :new, class: 'record-new-button'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
couch_blog-0.6.0 app/views/couch_blog/admin/posts/index.html.slim