2018-02-03 22:37:09 +00:00
|
|
|
.row
|
|
|
|
.col
|
|
|
|
%h1= @site.name
|
2018-01-29 22:19:10 +00:00
|
|
|
|
2018-02-03 22:37:09 +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')
|