[+] скорректировал марштуры и добавил страницу пользаков

This commit is contained in:
rsgrinko committed 2023-07-24 23:28:51 +03:00
1 parent 236fd45afa
commit 6576be0c61
6 files changed
+68 -49

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{% extends 'layout.twig' %}
{% block title %}Профиль пользователя {{ userData.login }}{% endblock %}
{% block main %}
<h1>Профиль пользователя {{ userData.login }}</h1>
<p>
<span>ID: {{ userData.id }}</span><br>
<span>Логин: {{ userData.login }}</span><br>
<span>Имя: {{ userData.name }}</span><br>
<span>E-Mail: {{ userData.email }}</span><br>
<span>Был активен: {{ userData.last_active }}</span><br>
</p>
{% endblock %}
+19 -3
View File
@@ -5,9 +5,25 @@
{% block main %}
<h1>Список пользователей</h1>
<p>
<ul>{% for user in users %}
<li>{{ user.login }}</li>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Логин</th>
<th>Имя</th>
<th></th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.id }}</td>
<td>{{ user.login }}</td>
<td>{{ user.name }}</td>
<td><a href="/users/{{ user.id }}">Открыть профиль</a></td>
</tr>
{% endfor %}
</ul>
</tbody>
</table>
</p>
{% endblock %}