ui: Add table dividers (#4417)

* ui: Add table dividers

And add some ­ hyphens while we're here.

* Remove ­
This commit is contained in:
Lars Eggert 2022-09-08 16:57:19 +03:00 committed by GitHub
parent 1dedeac83e
commit 228b496662
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 15 deletions

View file

@ -25,7 +25,7 @@
</tr> </tr>
</thead> </thead>
{% if stats %} {% if stats %}
<tbody> <tbody class="table-group-divider">
{% for item in stats %} {% for item in stats %}
<tr> <tr>
<th scope="row">{{ item.position__name }}</th> <th scope="row">{{ item.position__name }}</th>
@ -43,7 +43,7 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
{% endif %} {% endif %}
<tfoot> <tfoot class="table-group-divider">
<tr> <tr>
<th scope="row">Totals</th> <th scope="row">Totals</th>
<td>{{ totals.open }}</td> <td>{{ totals.open }}</td>

View file

@ -175,10 +175,10 @@
</tr> </tr>
</thead> </thead>
{% for row in data %} {% for row in data %}
{% if forloop.first %}<tbody>{% endif %} {% if forloop.first %}<tbody class="table-group-divider">{% endif %}
{% if forloop.last %}</tbody><tfoot>{% endif %} {% if forloop.last %}</tbody><tfoot class="table-group-divider">{% endif %}
<tr> <tr>
<td>{{ row.obj }}</td> {% if forloop.last %}<th scope="row">{% else %}<td>{% endif %}{{ row.obj }}{% if forloop.last %}</th>{% else %}</td>{% endif %}
<td>{{ row.open_in_time }}</td> <td>{{ row.open_in_time }}</td>
<td>{{ row.open_late }}</td> <td>{{ row.open_late }}</td>
<td>{{ row.completed_in_time }}</td> <td>{{ row.completed_in_time }}</td>
@ -219,12 +219,10 @@
</tr> </tr>
</thead> </thead>
{% for row in data %} {% for row in data %}
{% if forloop.first %}<tbody>{% endif %} {% if forloop.first %}<tbody class="table-group-divider">{% endif %}
{% if forloop.last %}</tbody><tfoot>{% endif %} {% if forloop.last %}</tbody><tfoot class="table-group-divider">{% endif %}
<tr> <tr>
<td> {% if forloop.last %}<th scope="row">{% else %}<td>{% endif %}{{ row.obj }}{% if forloop.last %}</th>{% else %}</td>{% endif %}
{{ row.obj }}
</td>
{% for c in row.result_list %} {% for c in row.result_list %}
<td> <td>
{{ c }} {{ c }}
@ -256,12 +254,10 @@
</tr> </tr>
</thead> </thead>
{% for row in data %} {% for row in data %}
{% if forloop.first %}<tbody>{% endif %} {% if forloop.first %}<tbody class="table-group-divider">{% endif %}
{% if forloop.last %}</tbody><tfoot>{% endif %} {% if forloop.last %}</tbody><tfoot class="table-group-divider">{% endif %}
<tr> <tr>
<td> {% if forloop.last %}<th scope="row">{% else %}<td>{% endif %}{{ row.obj }}{% if forloop.last %}</th>{% else %}</td>{% endif %}
{{ row.obj }}
</td>
{% for c in row.state_list %} {% for c in row.state_list %}
<td> <td>
{{ c }} {{ c }}