{% extends 'base.html' %} {% from 'bootstrap/pagination.html' import render_pagination %} {% block title %}Manage Posts{% endblock %} {% block content %} {% if posts %} {% for post in posts %} {% endfor %}
次序 标题 分类 日期 评论数 字数 操作
{{ loop.index + ((page - 1) * config.BLUELOG_MANAGE_POST_PER_PAGE) }} {{ post.title }} {{ post.category.name }} {{ moment(post.timestamp).format('LL') }} {{ post.comments|length }} {{ post.body|striptags|length }}
编辑
{% else %}
没有文章
{% endif %} {% endblock %}