From dc03ebed18281c0f598b677c66317cea27298981 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 2 Sep 2019 18:18:47 +1000 Subject: [PATCH] display bot's instance smaller than username, fixes #12 --- static/style.css | 3 +++ templates/bot_accounts.html | 4 ++-- templates/home.html | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index c9daa98..fce5017 100644 --- a/static/style.css +++ b/static/style.css @@ -26,6 +26,9 @@ body { .small { font-size: 0.8em; } +.tiny { + font-size: 0.5em; +} .centred { text-align: center; } diff --git a/templates/bot_accounts.html b/templates/bot_accounts.html index 3fb4660..b1f09ce 100644 --- a/templates/bot_accounts.html +++ b/templates/bot_accounts.html @@ -9,7 +9,7 @@

Set accounts to learn from

-

@botname@example.com

+

{{ handle }}

Add account Back @@ -20,7 +20,7 @@

-
@user@instan.ce
+
@user@instan.ce
12345 posts stored
diff --git a/templates/home.html b/templates/home.html index 25c2c0f..30ec905 100644 --- a/templates/home.html +++ b/templates/home.html @@ -21,7 +21,8 @@
-
{{ bot['handle'] }}
+ {% set handle_list = bot['handle'].split('@') %} +
@{{ handle_list[1] }}@{{ handle_list[2] }}
{% if bot['enabled'] %}Online{% else %}Offline{% endif %}, learning from {{ bot_users[bot['handle']] }} accounts