{% extends "base.html" %} {% import "/components/header.html" as header %} {% import "/components/footer.html" as footer %} {% import "posts/profile_card.html" as card %} {% import "/components/contacts.html" as contacts %} {% block title %}Посты{% endblock %} {% block content %} {{ header.section(user) }} {{find.username}} {% if 'admin' in user.get('roles', []) %} Переключиться на пользователя {% endif %} {% if 'admin' in user.get('roles', []) or 'partner' in user.get('roles', []) %} {{ contacts.details(find) }} {% endif %} На платформе с {{ (find._id.generation_time.strftime('%Y')) if find._id else ''}} {% if find.get('grade') is not none%} Звание: {{find.grade}} {% endif %} {% if find.get('biography') is not none%} Биография: {{find.biography}} {% endif %} 👁 {{total_watch_count}} (+{{today_watch_count}} Сегодня) {% for i in cards %} {{ card.section(i, loop.index, user) }} {% endfor %} {{ footer.section() }} {% endblock %} {% block head %} {{ header.style() }} {{ card.style() }} {{ contacts.style() }} {{ footer.style() }} {% endblock %}
{{find.username}}
Звание:
{{find.grade}}
Биография:
{{find.biography}}
👁 {{total_watch_count}} (+{{today_watch_count}} Сегодня)