WebHost: fix sample yamls that have no options.

WebHost: hide hidden games from templates listing
This commit is contained in:
Fabian Dill
2021-08-31 19:06:24 +02:00
parent 88c5ebdd2f
commit a6a859b272
3 changed files with 7 additions and 6 deletions

View File

@@ -68,4 +68,5 @@ progression_balancing:
{%- else %}
{{ yaml_dump(option.default) | indent(4, first=False) }}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
{% if not options %}{}{% endif %}

View File

@@ -14,7 +14,7 @@
<h1>Option Templates (YAML)</h1>
<ul>
{% for file in files %}
<li><a href="{{ url_for('static', filename="generated/"+file) }}">{{ file }}</a></li>
<li><a href="{{ url_for('static', filename="generated/"+file+".yaml") }}">{{ file }}</a></li>
{% endfor %}
</ul>
</div>