-
Notifications
You must be signed in to change notification settings - Fork 0
/
hunt.html
50 lines (50 loc) · 1.61 KB
/
hunt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<html>
<head>
<title>Hunt {{ hunt.name }}</title>
{% include "include-head.html" %}
</head>
<body>
{% include "header.html" %}
<h1>{{ hunt.name }}</h1>
<div id="content">
<div class="tabs">
<a class="active" href="/hunt/{{ hunt.key.id }}">Status</a>
<a href="/hunt/{{ hunt.key.id }}/clues">Clues</a>
<a href="/hunt/{{ hunt.key.id }}/teams">Teams</a>
</div>
<div class="tab-content">
{% if hunt.started %}
<h2>Hunt has started!</h2>
{% else %}
<form action="" method="post">
<input type="submit" value="Start hunt" />
</form>
{% endif %}
<table class="with-color">
<tr><th>Question/Team</th>
{% for team in hunt.teams %}
<th>{{ team.name }}</th>
{% endfor %}
</tr>
{% for answer_set in answer_sets %}
<tr><td>{{ answer_set.question }}</td>
{% for answer in answer_set.answers %}
<td>{% if answer %}X{% endif %}</td>
{% endfor %}
</tr>
{% endfor %}
<tr><td>Score</td>
{% for score in scores %}
<td>{{ score }}</td>
{% endfor %}
</tr>
<tr><td>Team progress</td>
{% for progress in progresses %}
<td>{{ progress }}</td>
{% endfor %}
</tr>
</table>
</div>
</div>
</body>
</html>