{% extends 'main/pagetemplate.html' %} {% load static %} {% block additional_css %} {% endblock %} {% block pagetitle %} Календарь {% endblock %} {% block content %}
{% if type == 'year' %}

Календарь

Год {{year_data.number}}-й

{% for month in months %} {% include 'faerun_calendar/month.html' with month=month %} {% endfor %}
{% elif type == 'day' %}

Календарь — События

Год {{year_data.number}}-й, {{month_data.name}}{% if not month_data.is_oneday %}, день {{day}}-й{% endif %}

{% if events.count == 0 %}

Событий нет

{% else %} {% for event in events %} {% if event.is_suggested %}
{% elif event.is_only_for_gm %}
{% else %}
{% endif %}
{{event.time}}
{{event.title}}

{{event.description}}

{% endfor %} {% endif %}
{% elif type == 'error' %}

Календарь — Ошибка

{% if error_type == 'year' %}

Неверный год

{% elif error_type == 'month' %}

Неверный месяц

{% elif error_type == 'day' %}

Неверный день

{% elif error_type == 'unknown' %}

Неизвестная ошибка

{% endif %}
{% endif %}
{% endblock %}