diff --git a/templates/users/user.html b/templates/users/user.html index 730173f..45e8967 100644 --- a/templates/users/user.html +++ b/templates/users/user.html @@ -2,6 +2,7 @@ {% 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 %} @@ -14,7 +15,6 @@
-
{{find.username}} @@ -22,10 +22,35 @@

{{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 %} +
+
+
+ - {% endif %} - {% if 'admin' in user.get('roles', []) %} -
Написать пользователю
- {% 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 %} - -
-
- -