mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Fix /games page not working
This commit is contained in:
@@ -90,7 +90,7 @@ def player_settings(game):
|
|||||||
|
|
||||||
# Game Info Pages
|
# Game Info Pages
|
||||||
@app.route('/games/<string:game>/info/<string:lang>')
|
@app.route('/games/<string:game>/info/<string:lang>')
|
||||||
def game_page(game, lang):
|
def game_info(game, lang):
|
||||||
return render_template('gameInfo.html', game=game, lang=lang)
|
return render_template('gameInfo.html', game=game, lang=lang)
|
||||||
|
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% include 'header/grassHeader.html' %}
|
{% include 'header/grassHeader.html' %}
|
||||||
<div id="game-info" class="markdown" data-game="{{ game }}">
|
<div id="game-info" class="markdown" data-lang="{{ lang }}" data-game="{{ game }}">
|
||||||
<!-- Populated my JS / MD -->
|
<!-- Populated my JS / MD -->
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
<div id="games">
|
<div id="games">
|
||||||
<h1>Currently Supported Games</h1>
|
<h1>Currently Supported Games</h1>
|
||||||
{% for game, description in worlds.items() %}
|
{% for game, description in worlds.items() %}
|
||||||
<h3><a href="{{ url_for("game_page", game=game) }}/player-settings">{{ game }}</a></h3>
|
<h3><a href="{{ url_for("player_settings", game=game) }}">{{ game }}</a></h3>
|
||||||
<p>{{ description }}</p>
|
<p>{{ description }}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user