{% import "components/nothing.html" as nothing with context %} {% import "components/user.html" as user with context %} {% import "components/paginator.html" as paginator with context %} {% extends "layout/basic.html" %} {% block content %}

{{ _('Article') }}

{% if handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) or handler.user.hasPerm(perm.PERM_EDIT_DOMAIN) %} {{ _('Open article operations') }} {% endif %}
{% if not ddocs.length %} {{ nothing.render('No article yet...') }} {% else %}
    {% for ddoc in ddocs %}
  1. {{ datetimeSpan(ddoc._id, false, 'D')|safe }}
    {{ datetimeSpan(ddoc._id, false, 'YYYY-M')|safe }}

    {{ ddoc.title }}

    • {{ _('{0} views').format(ddoc.views) }}
    • {{ user.render_inline(udict[ddoc.owner]) }}
    • {{ datetimeSpan(ddoc.updateAt)|safe }}
  2. {% endfor %}
{% if page and dpcount %}{{ paginator.render(page, dpcount, add_qs=qs) }}{% endif %} {% endif %}
{% include "partials/article_menu.html" %}
{% endblock %}