forked from MarseyWorld/MarseyWorld
show playlist in chat
parent
9bd36470c3
commit
1c85a2fb1c
|
@ -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)
|
||||
|
||||
|
|
|
@ -33,6 +33,28 @@
|
|||
<script defer src="{{'js/orgy_file.js' | asset}}"></script>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if (orgies)|length > 1 %}
|
||||
<table class="mt-2 d-mob-none">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Starts on</th>
|
||||
<th>Ends on</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for orgy in orgies %}
|
||||
<tr>
|
||||
<td>{{orgy.title}}</td>
|
||||
{% if orgy.started %}
|
||||
<td>Started</td>
|
||||
{% else %}
|
||||
<td data-time="{{orgy.start_utc}}"></td>
|
||||
{% endif %}
|
||||
<td {% if orgy.end_utc %}data-time="{{orgy.end_utc}}"{% endif %}></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue