<#compress > <#include "module/_macro.ftl"> <@head>${options.blog_title!} | <@spring.message code='admin.posts.title' />

# <@spring.message code='admin.posts.title' />

<@spring.message code='admin.posts.btn.new-post' />

- style="color: #000" ><@spring.message code='common.status.published' />(${publishCount}) |
- style="color: #000" ><@spring.message code='common.status.draft' />(${draftCount}) |
- style="color: #000" ><@spring.message code='common.status.recycle-bin' />(${trashCount})

<@spring.message code='common.th.title' /> | <@spring.message code='common.th.categories' /> | <@spring.message code='common.th.tags' /> | <@spring.message code='common.th.comments' /> | <@spring.message code='common.th.views' /> | <@spring.message code='common.th.date' /> | <@spring.message code='common.th.control' />
--- | --- | --- | --- | --- | --- | ---
<#if posts.content?size gt 0> <#list posts.content as post>

<#if post.postStatus==0> ${post.postTitle} <#else> ${post.postTitle}

<#if post.categories?size gt 0> <#list post.categories as cate> ${cate.cateName} <#else > 无分类

<#if post.tags?size gt 0> <#list post.tags as tag> ${tag.tagName} <#else > 无标签

${post.getComments()?size}

${post.postViews}

${post.postDate!?string("yyyy-MM-dd HH:mm")}

<#switch post.postStatus> <#case 0> <@spring.message code='common.btn.edit' />
')"><@spring.message code='common.btn.recycling' /> <#break > <#case 1> <@spring.message code="common.btn.edit" />
')"><@spring.message code='common.btn.release' />
')"><@spring.message code='common.btn.recycling' /> <#break > <#case 2> <@spring.message code='common.btn.reduction' />
')"><@spring.message code='common.btn.delete' /> <#break >

<#else>
<@spring.message code='common.text.no-data' />

#### <@spring.message code='common.text.tips' />

<@footer>