Files
Grinch-AP/WebHostLib/templates/macros.html

19 lines
670 B
HTML
Raw Normal View History

{% macro list_rooms(rooms) -%}
2020-07-18 16:25:07 -04:00
<ul>
{% for room in rooms %}
<li><a href="{{ url_for("hostRoom", room=room.id) }}">Room #{{ room.id|suuid }}</a></li>
{% endfor %}
{{ caller() }}
</ul>
2020-07-18 16:25:07 -04:00
{%- endmacro %}
{% macro list_patches_room(room) %}
{% if room.seed.patches %}
2020-08-02 22:11:52 +02:00
<ul>
2021-04-10 15:26:30 +02:00
{% for patch in room.seed.patches|list|sort(attribute="player_id") %}
2020-08-02 22:11:52 +02:00
<li><a href="{{ url_for("download_patch", patch_id=patch.id, room_id=room.id) }}">
Patch for player {{ patch.player_id }} - {{ patch.player_name }}</a></li>
2020-08-02 22:11:52 +02:00
{% endfor %}
</ul>
{% endif %}
{%- endmacro -%}