Sha256: 13dda0fa0c4d5b2ea48e23a49d382b074c788c7beabb7b979b190538ab6e75a9

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 Bytes

Contents

.fuel.fuel-admin.index
  h1 Blog Admin Panel
  => link_to 'New Blog Post', new_admin_post_path
  | | #{link_to 'View Blog', posts_path}
  table.table
    thead
      tr
        th Published On
        th Title
        th
        th
    tbody
      - @posts.each do |post|
        tr
          td= post.published ? post.created_at.strftime('%m/%d/%Y') : 'Draft'
          td= link_to post.title, post_path(post)
          td= link_to "Edit", edit_admin_post_path(post)
          td= link_to "Delete", admin_post_path(post), method: :delete, data: { confirm: "Are you sure you want to delete this post?" }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fuel-0.3.3 app/views/fuel/admin/posts/index.html.slim
fuel-0.3.2 app/views/fuel/admin/posts/index.html.slim