This repository was archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoutput.html.j2
More file actions
66 lines (56 loc) · 1.64 KB
/
Copy pathoutput.html.j2
File metadata and controls
66 lines (56 loc) · 1.64 KB
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
<html>
<head>
<style>
body, td {
font-family: Helvetica, sans-serif;
}
{% for css_color in colors %}
td.tile-color-{{ loop.index0 }} {background-color: {{ css_color }}; }
{% endfor %}
td {
width: {{ tile_size }}em;
height: {{ tile_size }}em;
text-align:center;
vertical-align:middle;
}
{% if show_section_boundaries %}
td.section-boundary { border-top: 2px double black; }
{% endif %}
.tile-table { border: 1px solid black;}
.tile-label {
mix-blend-mode: difference;
color: white;
}
</style>
</head>
<body>
<table style="float: right;">
{% for color in colors %}
<tr><td class="tile-color-{{ loop.index0 }}"><span class="tile-label">{{ color }}</span></td><td>{{ tile_counts[loop.index0] }}</td></tr>
{% endfor %}
<tr><td><span class="tile-label">Total</span></td><td>{{ tile_count_total }}</td></tr>
<tr><td><span class="tile-label">Tile cost</span></td><td>{{ formatted_cost }}</td></tr>
</table>
<table class="tile-table">
{% for row in grid %}
{% set rowloop = loop %}
<tr>
{% for color in row %}
<td class="tile-color-{{ color }} {% if rowloop.index0 % section_length == 0 %}section-boundary{% endif %}"> </td>
{% endfor %}
</tr>
{% endfor %}
</table>
<hr style="page-break-after: always;"/>
<table class="tile-table">
{% for row in grid %}
{% set rowloop = loop %}
<tr>
{% for color in row %}
<td class="tile-color-{{ color }} {% if rowloop.index0 % section_length == 0 %}section-boundary{% endif %}"><span class="tile-label">{{ color }}</span></td>
{% endfor %}
</tr>
{% endfor %}
</table>
</body>
</html>