55 lines
2.1 KiB
HTML
55 lines
2.1 KiB
HTML
{% extends 'pageWrapper.html' %}
|
|
{% import "macros.html" as macros %}
|
|
|
|
{% block head %}
|
|
<title>View Seed {{ seed.id|suuid }}</title>
|
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/viewSeed.css") }}"/>
|
|
<script type="application/ecmascript" src="{{ url_for('static', filename="assets/viewSeed.js") }}"></script>
|
|
{% endblock %}
|
|
|
|
{% block body %}
|
|
{% include 'header/oceanHeader.html' %}
|
|
<div id="view-seed-wrapper">
|
|
<div id="view-seed" class="grass-island">
|
|
<h1>Seed Info</h1>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>Seed: </td>
|
|
<td>{{ seed.id|suuid }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Created: </td>
|
|
<td id="creation-time" data-creation-time="{{ seed.creation_time }}"></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Players: </td>
|
|
<td>{{ slot_count }}</td>
|
|
</tr>
|
|
{% if seed.spoiler %}
|
|
<tr>
|
|
<td>Spoiler: </td>
|
|
<td><a href="{{ url_for("download_spoiler", seed_id=seed.id) }}">Download</a></td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<td>Rooms: </td>
|
|
<td>
|
|
{% call macros.list_rooms(seed.rooms | selectattr("owner", "eq", session["_id"])) %}
|
|
<li>
|
|
<a href="{{ url_for("new_room", seed=seed.id) }}">Create New Room</a>
|
|
</li>
|
|
{% endcall %}
|
|
{% if seed.rooms %}<span>
|
|
There are a total of {{ seed.rooms | length }} Rooms, only those created by you are linked above.
|
|
</span>{% endif %}
|
|
</td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% include 'islandFooter.html' %}
|
|
{% endblock %}
|