1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-12-28 23:38:57 +00:00
FediBooks/app/templates/bot/accounts.html

38 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2019-09-01 04:02:42 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FediBooks</title>
{% include 'imports.html' %}
</head>
<body>
<div class="container centred">
<h1 class="thin centred">Set accounts to learn from</h1>
<p class="large centred">{{ handle }}</p>
2019-09-01 04:02:42 +00:00
<p class="centred" style="margin: 50px 0;">
<a class="button btn-primary btn-large" href="/bot/accounts/add" role="button"><i class="fas fa-plus"></i> Add account</a>
<a class="button btn-secondary btn-large" href="/" role="button"><i class="fas fa-arrow-left"></i> Back</a>
</p>
</div>
2019-09-01 04:04:06 +00:00
<div class="container" style="min-height: 300px;">
2019-09-02 10:26:45 +00:00
{% for user in users %}
2019-09-01 04:04:06 +00:00
<div class="row light">
2019-09-02 10:26:45 +00:00
<div class="panel-icon {{ "online" if user['enabled'] else "offline" }}"></div>
2019-09-01 04:04:06 +00:00
<div class="panel-text">
2019-09-02 10:26:45 +00:00
{% set handle_list = user['fedi_id'].split('@') %}
<div class="panel-name">@{{ handle_list[1] }}<span class="subtle tiny">@{{ handle_list[2] }}</span></div>
2019-09-06 02:47:39 +00:00
<div class="panel-status">{{ "Active" if user['enabled'] else "Inactive" }}, {{ post_count[user['fedi_id']] }} posts in database</div>
2019-09-01 04:04:06 +00:00
</div>
<div class="panel-actions">
<a class="button btn-secondary" href="/bot/accounts/toggle/{{ user['fedi_id'] }}" title="Turn on/off"><i class="fas fa-power-off"></i></a><a class="button btn-dangerous" href="/bot/accounts/delete/{{ user['fedi_id'] }}" title="Delete"><i class="fas fa-trash"></i></a>
2019-09-01 04:02:42 +00:00
</div>
</div>
2019-09-02 10:26:45 +00:00
{% endfor %}
2019-09-01 04:02:42 +00:00
</div>
{% include 'footer.html' %}
</body>
</html>