-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmail_template.html
91 lines (85 loc) · 2.65 KB
/
mail_template.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
#table_all tr:nth-child(even) {
background-color: #dddddd;
}
.center {
display: grid;
place-items: center;
}
.red {
color: red;
}
.green {
color: green;
}
.mt-5{
margin-top: 40px;
}
</style>
</head>
<body>
{% if (data['dif_keys']) %}
<div class='center'>
<h2>ცვლილება</h2>
<table class="table" id="table_changes">
<tr>
<th>{{ data['headers'][0] }}</th>
<th>{{ data['headers'][1] }}</th>
<th>ცვლილება</th>
</tr>
{% for key in data['dif_keys'] %}
<tr>
<td>{{ key }}</td>
<td>{{ data['grades'][key] }} / 100</td>
{% if (data['deltas'][key] == 0) %}
<td>-</td>
{% elif (data['deltas'][key] > 0)%}
<td class="green">▲ {{ data['deltas'][key] }}</td>
{% else %}
<td class="red">▼ {{ data['deltas'][key] }}</td>
{% endif%}
</tr>
{% endfor %}
</table>
</div>
{% endif%}
{% if (data['grades']) %}
<div class='center mt-5'>
<h2>ყველა ქულა</h2>
<table class="table" id="table_all">
<tr>
<th>{{ data['headers'][0] }}</th>
<th>{{ data['headers'][1] }}</th>
<th>ცვლილება</th>
</tr>
{% for key in data['keys'] %}
<tr>
<td>{{ key }}</td>
<td>{{ data['grades'][key] }} / 100</td>
{% if (data['deltas'][key] == 0) %}
<td>-</td>
{% elif (data['deltas'][key] > 0)%}
<td class="green">▲ {{ data['deltas'][key] }}</td>
{% else %}
<td class="red">▼ {{ data['deltas'][key] }}</td>
{% endif%}
</tr>
{% endfor %}
</table>
</div>
{% endif%}
</body>
</html>