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 >
2019-09-02 08:18:47 +00:00
< 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 >
< div class = "panel-status" > {{ "Active" if user['enabled'] else "Inactive" }}< / div >
2019-09-01 04:04:06 +00:00
< / div >
< div class = "panel-actions" >
2019-09-01 04:08:47 +00:00
< a class = "button btn-secondary" href = "/bot/accounts/toggle/insert id here" title = "Turn on/off" > < i class = "fas fa-power-off" > < / i > < / a > < a class = "button btn-dangerous" href = "/bot/accounts/delete/insert id here" 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 >