-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistory.html
42 lines (39 loc) · 1.16 KB
/
history.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
{% extends "base.html" %}
{% block header %}
<div class="header">
<a href="/">Main</a>
</div>
{% endblock %}
{% block logo %}
<div class="logo">
<img src="images/logo.png" width="105px" height="111px"/>
<span class="oneLine">Game History</span>
</div>
{% endblock %}
{% block content %}
Your record: {{record_string}}<br/>
{% if completed_games_list %}
<table class="zebra historyList">
<tr class="historyListHeader">
<th>Opponent</th>
<th>Color</th>
<th>Status</th>
<th>Ended</th>
<th> </th>
</tr>
{% for gameObj in completed_games_list %}
<tr>
<td>{{gameObj.get_opposing_player}}</td>
<td>{{gameObj.get_color_as_string}}</td>
<td>{{gameObj.get_outcome_as_string}}</td>
<td>{{gameObj.get_last_modified}}</td>
<td><a class="btn" id="goGame" ref="{{gameObj.key}}">Review</a></td>
</tr>
{% endfor %}
</table>
{% else %}
<br/>
You have not completed any games.<br/><br/>
<a style="text-decoration: underline" href="/lobby">Click here</a> to view your current games or join a new one.
{% endif %}
{% endblock %}