 467bbd7754
			
		
	
	467bbd7754
	
	
	
		
			
			* WebHost: Fix setup guide link not working for games with special characters * use url_for with _anchor (#3279)
		
			
				
	
	
		
			69 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends 'pageWrapper.html' %}
 | |
| 
 | |
| {% block head %}
 | |
|     <title>Supported Games</title>
 | |
|     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/markdown.css") }}" />
 | |
|     <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/supportedGames.css") }}" />
 | |
|     <script type="application/ecmascript" src="{{ url_for('static', filename="assets/supportedGames.js") }}"></script>
 | |
|     <noscript>
 | |
|     <style>
 | |
|         /* always un-collapse all and hide arrow and search bar */
 | |
|         .js-only{
 | |
|           display: none;
 | |
|         }
 | |
| 
 | |
|         #games p.collapsed{
 | |
|           display: block;
 | |
|         }
 | |
| 
 | |
|         #games h2 .collapse-arrow{
 | |
|           display: none;
 | |
|         }
 | |
| 
 | |
|         #games .collapse-toggle{
 | |
|           cursor: unset;
 | |
|         }
 | |
|     </style>
 | |
|     </noscript>
 | |
| {% endblock %}
 | |
| 
 | |
| {% block body %}
 | |
|     {% include 'header/oceanHeader.html' %}
 | |
|     <div id="games" class="markdown">
 | |
|         <h1>Currently Supported Games</h1>
 | |
|         <div class="js-only">
 | |
|             <label for="game-search">Search for your game below!</label><br />
 | |
|             <div class="page-controls">
 | |
|                 <input id="game-search" placeholder="Search by title..." autofocus />
 | |
|                 <button id="expand-all">Expand All</button>
 | |
|                 <button id="collapse-all">Collapse All</button>
 | |
|             </div>
 | |
|         </div>
 | |
|         {% for game_name in worlds | title_sorted %}
 | |
|         {% set world = worlds[game_name] %}
 | |
|         <h2 class="collapse-toggle" data-game="{{ game_name }}">
 | |
|             <span class="collapse-arrow">▶</span>{{ game_name }}
 | |
|         </h2>
 | |
|         <p class="collapsed">
 | |
|             {{ world.__doc__ | default("No description provided.", true) }}<br />
 | |
|             <a href="{{ url_for("game_info", game=game_name, lang="en") }}">Game Page</a>
 | |
|             {% if world.web.tutorials %}
 | |
|             <span class="link-spacer">|</span>
 | |
|             <a href="{{ url_for("tutorial_landing", _anchor = game_name | urlencode) }}">Setup Guides</a>
 | |
|             {% endif %}
 | |
|             {% if world.web.options_page is string %}
 | |
|             <span class="link-spacer">|</span>
 | |
|             <a href="{{ world.web.options_page }}">Options Page</a>
 | |
|             {% elif world.web.options_page %}
 | |
|             <span class="link-spacer">|</span>
 | |
|             <a href="{{ url_for("player_options", game=game_name) }}">Options Page</a>
 | |
|             {% endif %}
 | |
|             {% if world.web.bug_report_page %}
 | |
|             <span class="link-spacer">|</span>
 | |
|             <a href="{{ world.web.bug_report_page }}">Report a Bug</a>
 | |
|             {% endif %}
 | |
|         </p>
 | |
|         {% endfor %}
 | |
|     </div>
 | |
| {% endblock %}
 |