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

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

<#if updateCategory??>

### <@spring.message code='admin.categories.text.edit-category' /> <#if updateCategory??>[${updateCategory.cateName}]

<@spring.message code='admin.categories.form.cate-name' /> <@spring.message code='admin.categories.form.cate-name-tips' />
<@spring.message code='admin.categories.form.cate-url' /> <@spring.message code='admin.categories.form.cate-url-tips' />
<@spring.message code='admin.categories.form.cate-desc' /> ${updateCategory.cateDesc} <@spring.message code='admin.categories.form.cate-desc-tips' />
<#else >

### <@spring.message code='admin.categories.text.add-category' />

<@spring.message code='admin.categories.form.cate-name' /> <@spring.message code='admin.categories.form.cate-name-tips' />
<@spring.message code='admin.categories.form.cate-url' /> <@spring.message code='admin.categories.form.cate-url-tips' />
<@spring.message code='admin.categories.form.cate-desc' /> <@spring.message code='admin.categories.form.cate-desc-tips' />

### <@spring.message code='admin.categories.text.all-categories' />

<@spring.message code='common.th.name' /> | <@spring.message code='common.th.url' /> | <@spring.message code='common.th.desc' /> | <@spring.message code='common.th.posts-count' /> | <@spring.message code='common.th.control' />
--- | --- | --- | --- | ---
<@commonTag method="categories"> <#if categories?? && categories?size gt 0> <#list categories as cate>
${cate.cateName} | ${cate.cateUrl} | ${(cate.cateDesc)!} | ${cate.posts?size} | <#if updateCategory?? && updateCategory.cateId?c==cate.cateId?c> <@spring.message code='common.btn.editing' /> <#else > <@spring.message code='common.btn.modify' />

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

<@spring.message code='common.text.tips.to-delete' />

<@footer>