{% extends "base.html" %} {% import "bootstrap/form.html" as wtf %} {% block app_content %}

Create a room

{{ wtf.render_form(form_create, id="create-room-form") }}

Join a room

{% if not public_rooms|length %} No rooms are available {% endif %} {% for room in public_rooms %} {% if room.password_hash is none %}

{{ room.name }}

Participants: {{ room.clients|length }} / {{ room.guest_limit if room.guest_limit is not none else "Unlimited" }}

Last active: {{ room.active_ago }} minutes ago

{% else %}

{{ room.name }}

Participants: {{ room.clients|length }} / {{ room.guest_limit if room.guest_limit is not none else "Unlimited" }}

Last active: {{ room.active_ago }} minutes ago

{{ form_join.csrf_token }} {{ wtf.form_errors(form_join, hiddens="only") }} {{ wtf.render_field(form_join.password) }} {{ wtf.render_field(form_join.submit) }}
{% endif %} {% endfor %}
{% endblock %}