2014-05-25 10:33:28 +08:00
|
|
|
.row.admin-posts-field
|
|
|
|
.small-12.columns
|
2015-04-07 01:19:09 +08:00
|
|
|
h3.blog-title #{t('admin.comments')}
|
2014-05-25 10:33:28 +08:00
|
|
|
h4.blog-title
|
|
|
|
= link_to @post.title, blog_path(@post), target: '_blank'
|
|
|
|
table width="100%"
|
|
|
|
thead
|
|
|
|
tr
|
2015-04-07 01:19:09 +08:00
|
|
|
th #{t('admin.comments_head.name')}
|
|
|
|
th #{t('admin.comments_head.email')}
|
|
|
|
th #{t('admin.comments_head.content')}
|
|
|
|
th #{t('admin.comments_head.created_at')}
|
|
|
|
th #{t('admin.comments_head.operation')}
|
2014-05-25 10:33:28 +08:00
|
|
|
tbody
|
|
|
|
- @comments.each do |comment|
|
|
|
|
tr
|
|
|
|
td #{comment.name}
|
2015-04-07 01:19:09 +08:00
|
|
|
td
|
2014-05-25 10:33:28 +08:00
|
|
|
= mail_to comment.email
|
2015-04-07 01:19:09 +08:00
|
|
|
td
|
2016-04-24 00:43:05 +08:00
|
|
|
= simple_format(comment.content)
|
2014-05-25 23:08:48 +08:00
|
|
|
td
|
|
|
|
= format_time(comment.created_at)
|
|
|
|
|
2014-05-25 10:33:28 +08:00
|
|
|
td
|
2015-04-07 01:19:09 +08:00
|
|
|
= link_to t('admin.comments_head.reply'), blog_path(@post), target: '_blank', class: 'edit-post-link'
|
|
|
|
= link_to t('admin.comments_head.destroy'), admin_post_comment_path(@post, comment), method: 'DELETE', 'data-confirm'=> '确认删除?'
|