From 9bbc669fcc2bc8ffa2f1371c2c2476d5309eeabe Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 2 Sep 2019 20:28:05 +1000 Subject: [PATCH] cleaned up home template --- templates/home.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/home.html b/templates/home.html index 30ec905..68486ef 100644 --- a/templates/home.html +++ b/templates/home.html @@ -19,11 +19,11 @@
{% for bot in bots %}
-
+
{% 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
+
{{ "Online" if bot['enabled'] else "Offline"}}, learning from {{ bot_users[bot['handle']] }} accounts