From 043f85a9b302c54259c4213ea53b4da9d2673449 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 1 Sep 2019 14:02:42 +1000 Subject: [PATCH] add bot accounts management page --- templates/bot_accounts.html | 36 ++++++++++++++++++++++++++++++++++++ webui.py | 4 ++++ 2 files changed, 40 insertions(+) create mode 100644 templates/bot_accounts.html diff --git a/templates/bot_accounts.html b/templates/bot_accounts.html new file mode 100644 index 0000000..7eefd56 --- /dev/null +++ b/templates/bot_accounts.html @@ -0,0 +1,36 @@ + + + + + FediBooks + {% include 'imports.html' %} + + + +
+

Set accounts to learn from

+

@botname@example.com

+

+ Add account + Back +

+
+ +
+
+
+
+
+
@user@instan.ce
+
12345 posts stored
+
+
+ +
+
+
+
+ + {% include 'footer.html' %} + + diff --git a/webui.py b/webui.py index 5502c64..b8715dc 100644 --- a/webui.py +++ b/webui.py @@ -43,6 +43,10 @@ def bot_edit(id): def bot_delete(id): return render_template("bot_delete.html") +@app.route("/bot/accounts/") +def bot_accounts(id): + return render_template("bot_accounts.html") + @app.route("/bot/create/") def bot_create(): session['step'] = 4