From 829b7e4cb6b8cc8ac39e9845ecfa9be55b050b0f Mon Sep 17 00:00:00 2001 From: Polina Date: Thu, 2 Jul 2026 17:03:01 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?templates=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/base.html | 24 +++++++++ templates/cabinet.html | 106 ++++++++++++++++++++++++++++++++++++++++ templates/login.html | 24 +++++++++ templates/register.html | 24 +++++++++ 4 files changed, 178 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/cabinet.html create mode 100644 templates/login.html create mode 100644 templates/register.html diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..a5fbafc --- /dev/null +++ b/templates/base.html @@ -0,0 +1,24 @@ + + + + + + {% block title %}Robot Management{% endblock %} + + + +
+
+ + {% block nav %}{% endblock %} +
+
+
+ {% block content %}{% endblock %} +
+ + + + diff --git a/templates/cabinet.html b/templates/cabinet.html new file mode 100644 index 0000000..744630e --- /dev/null +++ b/templates/cabinet.html @@ -0,0 +1,106 @@ +{% extends "base.html" %} + +{% block title %}Личный кабинет — Robot Management{% endblock %} + +{% block nav %} +
+ +
+{% endblock %} + +{% block content %} +

Личный кабинет

+ +
+
+

Профиль

+
+
+
Email
+
{{ user.email }}
+
+
+
ID
+
{{ user.id }}
+
+
+
Рейтинг
+
{{ "%.1f"|format(user.rating) }}
+
+
+
Баллы
+
{{ user.points }}
+
+
+
Дата регистрации
+
{{ user.created_at.strftime("%d.%m.%Y %H:%M") }}
+
+
+
+ +
+

Активные сессии

+ {% if sessions %} + + + + + + + + + + {% for s in sessions %} + + + + + + {% endfor %} + +
IDСозданаИстекает
{{ s.id }}{{ s.created_at.strftime("%d.%m.%Y %H:%M") }}{{ s.expires_at.strftime("%d.%m.%Y %H:%M") }}
+ {% else %} +

Нет активных сессий

+ {% endif %} +
+
+ +
+

Данные от внешних приложений

+ {% if external_data %} + + + + + + + + + + {% for item in external_data %} + + + + + + {% endfor %} + +
ИсточникДанныеВремя
{{ item.source }}{{ item.payload[:120] }}{% if item.payload|length > 120 %}…{% endif %}{{ item.created_at.strftime("%d.%m.%Y %H:%M") }}
+ {% else %} +

Пока нет записей от внешних систем

+ {% endif %} +
+ +
+

API для внешних приложений

+

Передавайте ключ в заголовке: Authorization: Bearer <API_KEY>

+ +

Открыть Swagger-документацию →

+
+{% endblock %} diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..84a3d8c --- /dev/null +++ b/templates/login.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block title %}Вход — Robot Management{% endblock %} + +{% block content %} +
+

Вход

+ {% if error %} +
{{ error }}
+ {% endif %} +
+ + + +
+

Нет аккаунта? Зарегистрироваться

+
+{% endblock %} diff --git a/templates/register.html b/templates/register.html new file mode 100644 index 0000000..b026b4d --- /dev/null +++ b/templates/register.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} + +{% block title %}Регистрация — Robot Management{% endblock %} + +{% block content %} +
+

Регистрация

+ {% if error %} +
{{ error }}
+ {% endif %} +
+ + + +
+

Уже есть аккаунт? Войти

+
+{% endblock %}