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 %}