{% extends "base.html" %}
|
{% block title %}Капчи - Amadeus{% endblock %}
|
{% block header %}Активные капчи{% endblock %}
|
{% block content %}
|
|
<div class="overflow-x-auto rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 shadow-sm">
|
<table class="w-full min-w-[420px] text-sm">
|
<thead class="bg-gray-50 dark:bg-gray-900/60 text-gray-500 dark:text-gray-400">
|
<tr>
|
<th class="px-5 py-3 text-left font-medium">Чат</th>
|
<th class="px-5 py-3 text-left font-medium">Пользователь</th>
|
<th class="px-5 py-3 text-left font-medium">Осталось</th>
|
</tr>
|
</thead>
|
<tbody class="divide-y divide-gray-100 dark:divide-gray-800">
|
{% for r in rows %}
|
<tr>
|
<td class="px-5 py-3">{{ names.get(r.chat_id, r.chat_id) }}</td>
|
<td class="px-5 py-3">{{ r.user_id }}</td>
|
<td class="px-5 py-3 text-gray-500">{{ r.left }} с</td>
|
</tr>
|
{% else %}
|
<tr><td colspan="3" class="px-5 py-8 text-center text-gray-500">Сейчас никто не проходит капчу.</td></tr>
|
{% endfor %}
|
</tbody>
|
</table>
|
</div>
|
|
{% endblock %}
|