Sha256: 84a7a4d8189e48e6a691fe740316121aa28d5a1eca172eb755d251b9c782a00f
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
- content_for :links do - if params[:published] == "false" = link_to "Published Posts", posts_path, class: "btn btn-default" - else = link_to "Drafts", posts_path(published: false), class: "btn btn-default" = link_to "New Post", new_post_path, class: "btn btn-default" %table.table.table-bordered.table-striped %thead %tr %th Title %th Date %th Published? %tbody - @posts.each do |post| = content_tag_for(:tr, post) do %td= link_to post.title, post %td= post.date_parsed %td= post.published
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blogr-0.0.8 | app/views/blogr/posts/index.html.haml |