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

25 lines
643 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|
2018-02-19 20:13:49 +00:00
- direction = post.get_front_matter(:dir)
%tr
2018-02-19 20:13:49 +00:00
%td{class: direction}
= link_to post.title, site_post_path(@site, post)
%br
%small= post.categories.join(', ')
%td= post.date.strftime('%F')