mirror of
https://github.com/daniviga/django-ram.git
synced 2026-02-03 17:40:39 +01:00
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
{% if documents %}
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="3" scope="row">{{ header|default:"Documents" }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-group-divider">
|
|
{% for d in documents.all %}
|
|
<tr>
|
|
<td class="w-33">{{ d.description }}</td>
|
|
<td class="text-nowrap">
|
|
{% if d.private %}
|
|
<i class="bi bi-file-earmark-lock2"></i>
|
|
{% else %}
|
|
<i class="bi bi-file-earmark-text"></i>
|
|
{% endif %}
|
|
<a href="{{ d.file.url }}" target="_blank">{{ d.filename }}</a>
|
|
</td>
|
|
<td class="text-end">{{ d.file.size | filesizeformat }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
|