adjusted layout

master
Simon Pirkelmann 2021-08-30 21:03:30 +02:00
parent 8bc0a642a3
commit 8a9a667429
1 changed files with 13 additions and 2 deletions

View File

@ -17,7 +17,13 @@
</thead>
<tbody>
{% for t, data in assigned_tokens.items() %}
<tr>
<tr
{% if loop.index % 2 %}
style="background-color: lightgrey"
{% else %}
style="background-color: mintcream"
{% endif %}
>
<td>{{ t }}</td>
{% for field in ['name', 'organization', 'email', 'valid_thru'] %}
<td>{{ data[field] if data[field] }}</td>
@ -29,8 +35,13 @@
</td>
</tr>
{% endfor %}
{% if inactive_tokens | length > 0 %}
<tr>
<td>Inaktive Tokens:</td>
</tr>
{% endif %}
{% for t, data in inactive_tokens.items() %}
<tr style="background-color: lightgrey">
<tr style="background-color: sandybrown">
<td>{{ t }}</td>
{% for field in ['name', 'organization', 'email', 'valid_thru'] %}
<td>{{ data[field] if data[field] }}</td>