From 1c85a2fb1cbf03926694bf338b29a6934773e047 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 4 Mar 2024 04:06:11 +0200 Subject: [PATCH] show playlist in chat --- files/routes/chat.py | 3 ++- files/templates/orgy.html | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 3060fc1bb..f7e07f594 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -75,7 +75,8 @@ def chat(v): orgy = get_running_orgy(v) if orgy: x = secrets.token_urlsafe(8) - return render_template("orgy.html", v=v, messages=displayed_messages, orgy=orgy, x=x) + orgies = g.db.query(Orgy).order_by(Orgy.start_utc).all() + return render_template("orgy.html", v=v, messages=displayed_messages, orgy=orgy, x=x, orgies=orgies) return render_template("chat.html", v=v, messages=displayed_messages) diff --git a/files/templates/orgy.html b/files/templates/orgy.html index 6da89f185..5c4a24268 100644 --- a/files/templates/orgy.html +++ b/files/templates/orgy.html @@ -33,6 +33,28 @@ {% endif %}

+ {% if (orgies)|length > 1 %} + + + + + + + + + {% for orgy in orgies %} + + + {% if orgy.started %} + + {% else %} + + {% endif %} + + + {% endfor %} +
TitleStarts onEnds on
{{orgy.title}}Started
+ {% endif %}