FF1: set up special settings page (remote website)

This commit is contained in:
Fabian Dill
2022-02-20 21:54:00 +01:00
parent a98cb040b7
commit 1159137c0d
6 changed files with 30 additions and 9 deletions

View File

@@ -9,12 +9,17 @@
{% include 'header/grassHeader.html' %}
<div id="games">
<h1>Currently Supported Games</h1>
{% for game, description in worlds.items() | sort %}
<h3><a href="{{ url_for("game_info", game=game, lang="en") }}">{{ game }}</a></h3>
{% for game_name, world in worlds.items() | sort %}
<h3><a href="{{ url_for("game_info", game=game_name, lang="en") }}">{{ game_name }}</a></h3>
<p>
<a href="{{ url_for("player_settings", game=game) }}">Settings Page</a>
{% if world.web.settings_page is string %}
<a href="{{ world.web.settings_page }}">Settings Page</a>
<br />
{{ description }}
{% elif world.web.settings_page %}
<a href="{{ url_for("player_settings", game=game_name) }}">Settings Page</a>
<br />
{% endif %}
{{ world.__doc__ | default("No description provided.", true) }}
</p>
{% endfor %}
</div>