-
Notifications
You must be signed in to change notification settings - Fork 0
/
rankings.html
68 lines (64 loc) · 1.68 KB
/
rankings.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
layout: page
title: Rankings
---
<style>
#customers {
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
text-align: center;
border: 1px solid #ddd;
padding: 8px;
}
#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: center;
background-color: #005387;
color: white;
}
</style>
{% assign competitions = "SwissEurobot,Eurobot,Belgium Eurobot,Cup of Île-de-France,Landminefree" | split: ',' %}
{% for competition in competitions %}
<h2><b>{{competition}}</b></h2>
<table id="customers">
<tr>
<th>Year</th>
<th>Theme</th>
<th>Host City</th>
<th>Robots</th>
<th>Round</th>
<th>Rank</th>
<th>Distinction</th>
</tr>
{% for record in site.data.records %}
{% if record.competition == competition %}
{% if record.rank == "1st" %}
<tr bgcolor="#F5CD00">
{% elsif record.rank == "2nd" %}
<tr bgcolor="B6B6B6">
{% elsif record.rank == "3rd" %}
<tr bgcolor="#E19346">
{% else %}
<tr>
{% endif %}
<td>{{record.year}}</td>
<td>{{record.theme}}</td>
<td>{{record.city}}</td>
<td>{{record.robots}}</td>
<td>{{record.round}}</td>
<td>{{record.rank}}</td>
{% if record.distinction %}
<td>{{record.distinction}}</td>
{% else %}
<td></td>
{% endif %}
</tr>
{% endif %}
{% endfor %}
</table>
<br>
{% endfor %}