Skip to content

Commit 6d01e07

Browse files
committed
add processes view: introduce detailed layout for processes scoreboard
1 parent 6f65278 commit 6d01e07

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Processes Scoreboard</title>
5+
<link rel="stylesheet" type="text/css" href="static/main.css">
6+
</head>
7+
<body>
8+
<table>
9+
<tr>
10+
<th rowspan="3">Name</th>
11+
<th rowspan="3" style="text-align: center;">V</th>
12+
{% for name in top_task_names %}
13+
<th colspan="10" style="text-align: center;">{{ name }}</th>
14+
{% endfor %}
15+
<th rowspan="3">Total</th>
16+
</tr>
17+
<tr>
18+
{% for header in group_headers %}
19+
<th colspan="5" style="text-align: center;">{{ header.type }}</th>
20+
{% endfor %}
21+
</tr>
22+
<tr>
23+
{% for _ in group_headers %}
24+
{% for letter in ('S', 'A', 'E', 'D', 'P') %}
25+
<th style="text-align: center;">{{ letter }}</th>
26+
{% endfor %}
27+
{% endfor %}
28+
</tr>
29+
{% for row in rows %}
30+
<tr>
31+
<td>{{ row.task }}</td>
32+
<td style="text-align: center;">{{ row.variant }}</td>
33+
{% for cell in row.groups %}
34+
<td style="text-align: center{% if cell.solution_style %};{{ cell.solution_style }}{% endif %}">{{ cell.solution_points }}</td>
35+
<td style="text-align: center;background-color: lavender;">{{ cell.acceleration }}</td>
36+
<td style="text-align: center;background-color: lavender;">{{ cell.efficiency }}</td>
37+
<td style="text-align: center;">{{ cell.deadline_points }}</td>
38+
<td style="text-align: center{% if cell.plagiarised %}; background-color: pink{% endif %}">{{ cell.plagiarism_points }}</td>
39+
{% endfor %}
40+
<td style="text-align: center;">{{ row.total }}</td>
41+
</tr>
42+
{% endfor %}
43+
</table>
44+
</body>
45+
</html>

0 commit comments

Comments
 (0)