Tabellenmuster gefixt (nopattern-class)

This commit is contained in:
2021-11-19 14:25:49 +01:00
parent d78d85c575
commit 62329b5124
2 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -337,15 +337,15 @@ table tr.clickable {
table tr.clickable:hover,
table tr.clickable:focus {
background-color: var(--bg-tertiary);
background-color: var(--bg-tertiary) !important;
outline: none;
}
table tbody tr:nth-child(odd) {
table tbody tr:nth-child(odd), table.nopattern tbody tr {
background-color: var(--bg-primary);
}
table tbody tr:nth-child(even) {
table:not(.nopattern) tbody tr:nth-child(even), table tbody tr.explicit-pattern {
background-color: var(--bg-secondary);
}
@@ -45,7 +45,7 @@
{% if klausur_list|length == 0 %}
<p>keine</p>
{% else %}
<table>
<table class="nopattern">
<thead>
<tr>
<th colspan="6" class="first-in-category">Klausur</th>
@@ -68,8 +68,9 @@
{% for klausur in klausur_list %}
{% set kt_list = Klausurteilnahme.query
.filter_by(klausur=klausur, versaeumt=true, nachgeschrieben=nachgeschrieben).all() %}
{% set klausur_index = loop.index %}
{% for kt in kt_list %}
<tr>
<tr {% if klausur_index is divisibleby 2 %}class="explicit-pattern"{% endif %}>
{% if loop.first %}
<td rowspan="{{ kt_list|length }}" class="first-in-category">
<a href="{{ url_for('klausuren.edit', klausur_id=klausur.id) }}">