5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 08:41:41 +00:00
panel/app/views/posts/index.haml

21 lines
527 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
2018-02-10 20:21:50 +00:00
%td{class: post.get_front_matter(:dir)}= link_to post.title, site_post_path(@site, post)
%td= post.date.strftime('%F')