connections/app/templates/all.html

52 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>All Connections Puzzles</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<nav class="header-links">
<a href="/all" class="active">all</a>
{% if show_zero_link %}
<a href="/0">0</a>
{% endif %}
{% for number in nav_numbers %}
<a href="/{{ number }}">{{ number }}</a>
{% endfor %}
<a href="/new">new</a>
<a href="/delete">delete</a>
</nav>
<h1>Connections</h1>
<p class="subtitle">All Puzzles</p>
<div class="all-table-wrap">
<table class="all-table">
<thead>
<tr>
<th>Puzzle Number</th>
<th>Author</th>
<th>Creation Date</th>
<th>Link</th>
</tr>
</thead>
<tbody>
{% for puzzle in puzzles %}
<tr>
<td>{{ puzzle.number }}</td>
<td>{{ puzzle.author }}</td>
<td>{{ puzzle.creation_date }}</td>
<td><a class="ghost-link table-link-btn" href="/{{ puzzle.number }}">Open</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>