{% 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 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'] }}

  2. {%- endfor -%}
{% if page and dpcount %}{{ paginator.render(page, dpcount, add_qs=qs) }}{% endif %} {% endif %}
{% endblock %}