app/views/templates/_post.html.slim
/ locals:
/ post {Post}
.list-group-item.post-list.mod-hover-hidden
.container-fluid
.row
.col-xs-9
h4.text-link #{post.title}
.col-xs-3
small.pull-right ##{post.id}
.row
.col-xs-8
p.small.text-success
| #{post.author.name} posted
abbr.js-time-ago data-time-ago-at=post.updated_at
|.
- post.tags.each do |tag|
span.label.label-success ##{tag.name}
|
.col-xs-4
span.pull-right.label.label-danger = post.display_specified_date if post.specified_date
.row
.col-xs-12
.mod-hover-hidden
a.btn.btn-default href=fork_post_path(post)
| このテンプレートを利用する
|
a.btn.btn-default href=edit_post_path(post)
| 編集する