mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
add admin mode
This commit is contained in:
1 parent
0ed4c1f45c
commit
7e2b645490
5 files changed
+26
-11
No files matched your search
@@ -14,7 +14,8 @@
|
||||
<h1>Admin Interface</h1>
|
||||
<p><a href="/admin/logout">Logout</a> <a href="/admin/login">Add more instances</a></p>
|
||||
|
||||
<p><h4>Instances</h4> you are logged in for.</p>
|
||||
<h4>Instances</h4>
|
||||
{% if is_admin %}<p class="text-danger-emphasis">Admin mode.</p>{% endif %}
|
||||
<div class="table-responsive">
|
||||
<table id="status-tbl" class="table sortable table-hover table-sm">
|
||||
<thead>
|
||||
@@ -24,9 +25,11 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for instance in instances -%}
|
||||
<tr>
|
||||
<td>{{instance.domain}}</td>
|
||||
{# <td><a href="/admin/history/{{instance.id}}">History</a></td> #}
|
||||
<td><a href="/admin/errors/{{instance.id}}">Errors</a></td>
|
||||
</tr>
|
||||
{%- endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in new issue
Block a user