-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7182655
commit e27fb05
Showing
1 changed file
with
16 additions
and
14 deletions.
There are no files selected for viewing
30 changes: 16 additions & 14 deletions
30
peachjam/templates/peachjam/_grouped_judgments_table.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |