sutty/app/views/posts/index.haml

21 lines
491 B
Text
Raw Normal View History

2018-02-05 17:27:12 +00:00
.row
.col
= render 'layouts/breadcrumb', crumbs: [ link_to(t('sites.index'), sites_path), @site.name, t('posts.index') ]
.row
.col
%h1= @site.name
2018-01-29 22:19:10 +00:00
.row
.col
= link_to t('posts.new'), new_site_post_path(@site),
class: 'btn btn-success'
.row
.col
%table.table.table-condensed.table-striped
%tbody
- @site.posts.each do |post|
%tr
%td= link_to post.title, site_post_path(@site, post)
%td= post.date.strftime('%F')