mirror of
https://github.com/nelsbrock/NateMan.git
synced 2026-08-14 21:36:49 +02:00
Tabellenmuster gefixt (nopattern-class)
This commit is contained in:
@@ -337,15 +337,15 @@ table tr.clickable {
|
|||||||
|
|
||||||
table tr.clickable:hover,
|
table tr.clickable:hover,
|
||||||
table tr.clickable:focus {
|
table tr.clickable:focus {
|
||||||
background-color: var(--bg-tertiary);
|
background-color: var(--bg-tertiary) !important;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
table tbody tr:nth-child(odd) {
|
table tbody tr:nth-child(odd), table.nopattern tbody tr {
|
||||||
background-color: var(--bg-primary);
|
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);
|
background-color: var(--bg-secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
{% if klausur_list|length == 0 %}
|
{% if klausur_list|length == 0 %}
|
||||||
<p>keine</p>
|
<p>keine</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<table>
|
<table class="nopattern">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="6" class="first-in-category">Klausur</th>
|
<th colspan="6" class="first-in-category">Klausur</th>
|
||||||
@@ -68,8 +68,9 @@
|
|||||||
{% for klausur in klausur_list %}
|
{% for klausur in klausur_list %}
|
||||||
{% set kt_list = Klausurteilnahme.query
|
{% set kt_list = Klausurteilnahme.query
|
||||||
.filter_by(klausur=klausur, versaeumt=true, nachgeschrieben=nachgeschrieben).all() %}
|
.filter_by(klausur=klausur, versaeumt=true, nachgeschrieben=nachgeschrieben).all() %}
|
||||||
|
{% set klausur_index = loop.index %}
|
||||||
{% for kt in kt_list %}
|
{% for kt in kt_list %}
|
||||||
<tr>
|
<tr {% if klausur_index is divisibleby 2 %}class="explicit-pattern"{% endif %}>
|
||||||
{% if loop.first %}
|
{% if loop.first %}
|
||||||
<td rowspan="{{ kt_list|length }}" class="first-in-category">
|
<td rowspan="{{ kt_list|length }}" class="first-in-category">
|
||||||
<a href="{{ url_for('klausuren.edit', klausur_id=klausur.id) }}">
|
<a href="{{ url_for('klausuren.edit', klausur_id=klausur.id) }}">
|
||||||
|
|||||||
Reference in New Issue
Block a user