{% extends "stories_list_common.html" %} {% from 'macro.html' import paginator with context %} {% block before_list %}
{% if period != 7 %}{% endif -%} За неделю {%- if period != 7 %}{% endif %}     {% if period != 30 %}{% endif -%} За месяц {%- if period != 30 %}{% endif %}     {% if period != 365 %}{% endif -%} За год {%- if period != 365 %}{% endif %}     {% if period != 0 %}{% endif -%} За всё время {%- if period != 0 %}{% endif %}
{% endblock %} {% block after_list %} {% if stories %}{{ paginator(page_obj) }}{% endif %} {% endblock %}