Skip to content

Commit

Permalink
tbody
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Jun 1, 2024
1 parent 7182655 commit e27fb05
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions peachjam/templates/peachjam/_grouped_judgments_table.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
{% extends 'peachjam/_judgment_table.html' %}
{% block table-body %}
{% for item in grouped_documents %}
{% if item.judgments %}
<tr>
<td class="cell-group">{{ item.key }}</td>
</tr>
{% for judgment in item.judgments %}
<tbody>
{% for item in grouped_documents %}
{% if item.judgments %}
<tr>
<td class="cell-title">
<a href="{{ judgment.get_absolute_url }}">{{ judgment.title }}</a>
{% include 'peachjam/_labels.html' with labels=judgment.labels.all %}
</td>
<td class="cell-date" style="white-space: nowrap;">{{ judgment.date }}</td>
<td class="cell-group">{{ item.key }}</td>
</tr>
{% endfor %}
{% endif %}
{% endfor %}
{% for judgment in item.judgments %}
<tr>
<td class="cell-title">
<a href="{{ judgment.get_absolute_url }}">{{ judgment.title }}</a>
{% include 'peachjam/_labels.html' with labels=judgment.labels.all %}
</td>
<td class="cell-date" style="white-space: nowrap;">{{ judgment.date }}</td>
</tr>
{% endfor %}
{% endif %}
{% endfor %}
</tbody>
{% endblock %}

0 comments on commit e27fb05

Please sign in to comment.