2019-08-29 06:23:56 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< title > FediBooks< / title >
{% include 'imports.html' %}
< / head >
< body >
< div class = "container light" >
< h1 class = 'thin centred' > Home< / h1 >
2019-09-01 10:24:45 +00:00
< p class = "centred large" > Hi there! You have {{ bot_count }} bot{% if bot_count != 1 %}s{% endif %}{% if bot_count != 0 %}, {{ active_count }} of which {% if active_count == 1 %}is{% else %}are{% endif %} currently active.{% else %}.{% endif %}< / p >
2019-08-29 06:23:56 +00:00
< p class = "centred" style = "margin: 50px 0;" >
2019-08-30 08:52:13 +00:00
< a class = "button btn-primary btn-large" href = "/bot/create" role = "button" > < i class = "fas fa-robot" > < / i > New bot< / a >
2019-08-29 06:23:56 +00:00
< a class = "button btn-secondary btn-large" href = "/settings" role = "button" > < i class = "fas fa-cog" > < / i > Account settings< / a >
< a class = "button btn-secondary btn-large" href = "/do/signout" role = "button" > < i class = "fas fa-sign-out-alt" > < / i > Sign out< / a >
< / p >
< / div >
< div class = "container" style = "min-height: 300px;" >
2019-09-02 03:42:34 +00:00
{% for bot in bots %}
2019-08-29 06:23:56 +00:00
< div class = "row light" >
2019-09-21 05:54:57 +00:00
< div class = "panel-icon {{ 'online' if bot['enabled'] else 'offline'}}" style = "{{ 'background-image: url(\'' + bot['icon'] + '\')' if bot['icon'] else '' }}" > < / div >
2019-08-31 13:57:38 +00:00
< div class = "panel-text" >
2019-09-02 08:18:47 +00:00
{% set handle_list = bot['handle'].split('@') %}
< div class = "panel-name" > @{{ handle_list[1] }}< span class = "subtle tiny" > @{{ handle_list[2] }}< / span > < / div >
2019-09-11 11:05:28 +00:00
< div class = "panel-status" > {{ "Online" if bot['enabled'] else "Offline"}}, learning from {{ bot_users[bot['handle']] }} accounts.{% if bot['handle'] in next_posts %} Next post in {{ next_posts[bot['handle']][0] }} minutes.{% endif %}< / div >
2019-08-29 06:23:56 +00:00
< / div >
2019-08-31 13:57:38 +00:00
< div class = "panel-actions" >
2019-09-02 06:47:49 +00:00
< a class = "button btn-secondary" href = "/bot/toggle/{{ bot['handle'] }}" title = "Turn on/off" > < i class = "fas fa-power-off" > < / i > < / a > < a class = "button btn-secondary" href = "/bot/edit/{{ bot['handle'] }}" title = "Configure" > < i class = "fas fa-cog" > < / i > < / a > < a class = "button btn-secondary" href = "/bot/accounts/{{ bot['handle'] }}" title = "Accounts learned from" > < i class = "fas fa-users" > < / i > < / a > < a class = "button btn-secondary" href = "/bot/blacklist/{{ bot['handle'] }}" title = "Banned words" > < i class = "fas fa-strikethrough" > < / i > < / a > < a class = "button btn-secondary" href = "/bot/chat/{{ bot['handle'] }}" title = "Chat" > < i class = "fas fa-comment" > < / i > < / a > < a class = "button btn-dangerous" href = "/bot/delete/{{ bot['handle'] }}" title = "Delete" > < i class = "fas fa-trash" > < / i > < / a >
2019-08-29 06:23:56 +00:00
< / div >
< / div >
2019-09-02 03:42:34 +00:00
{% endfor %}
2019-08-29 06:23:56 +00:00
< / div >
< div class = "container" >
< h2 > Support the author < i class = "fas fa-heart" > < / i > < / h2 >
< p > FediBooks is a passion project I develop and maintain in my free time. If you'd like to contribute, you can do so here.< / p >
< a class = "button btn-primary" href = "https://patreon.com/Lynnesbian" role = "button" > < i class = "fab fa-patreon" > < / i > Patreon< / a >
< a class = "button btn-primary" href = "https://paypal.me/Lynnesbian" role = "button" > < i class = "fab fa-paypal" > < / i > PayPal< / a >
< a class = "button btn-primary" href = "https://ko-fi.com/Lynnesbian" role = "button" > < i class = "fas fa-coffee" > < / i > Ko-fi< / a >
< / div >
{% include 'footer.html' %}
< / body >
< / html >