WebHost: fix Authors on supported game page (#6218)

This commit is contained in:
Emily
2026-06-07 12:21:30 -04:00
committed by GitHub
parent 09aba95c03
commit 5ccef9802a
2 changed files with 11 additions and 3 deletions
@@ -42,3 +42,7 @@
#games .page-controls button{
margin-left: 0.5rem;
}
#games .author-label{
margin-top: 0.5rem;
}
+7 -3
View File
@@ -49,6 +49,13 @@
<details data-game="{{ game_name }}">
<summary class="h2">{{ game_name }}</summary>
{{ world.__doc__ | default("No description provided.", true) }}<br />
{% if "authors" in world.manifest %}
{% if world.manifest["authors"]|length == 1 %}
<p class="author-label">Author: {{ world.manifest["authors"][0] }}</p>
{% else %}
<p class="author-label">Authors: {{ world.manifest["authors"] | join(", ") }}</p>
{% endif %}
{% endif %}
<a href="{{ url_for("game_info", game=game_name, lang="en") }}">Game Page</a>
{% if world.web.tutorials %}
<span class="link-spacer">|</span>
@@ -68,9 +75,6 @@
<a href="{{ world.web.bug_report_page }}">Report a Bug</a>
{% endif %}
</details>
{% if "authors" in world.manifest %}
<p>Authors: {{ world.manifest["authors"] | join(", ") }}</p>
{% endif %}
{% endfor %}
</div>
{% endblock %}