mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Add generic multiworld tracker, move lttp multiworld tracker (#1478)
Co-authored-by: Berserker
This commit is contained in:
12
WebHostLib/templates/multiTrackerNavigation.html
Normal file
12
WebHostLib/templates/multiTrackerNavigation.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{%- if enabled_multiworld_trackers|length > 1 -%}
|
||||
<div id="tracker-navigation">
|
||||
{% for enabled_tracker in enabled_multiworld_trackers %}
|
||||
{% set tracker_url = url_for(enabled_tracker.endpoint, tracker=room.tracker) %}
|
||||
{%- if enabled_tracker.current -%}
|
||||
<a class="tracker-navigation-button selected" href="{{ tracker_url }}">{{ enabled_tracker.name }}</a>
|
||||
{%- else -%}
|
||||
<a class="tracker-navigation-button" href="{{ tracker_url }}">{{ enabled_tracker.name }}</a>
|
||||
{%- endif -%}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{%- endif -%}
|
Reference in New Issue
Block a user