docbow/docbow_project/docbow/templates/docbow/mailbox_table.html

33 lines
1.3 KiB
HTML

{% extends "django_tables2/table.html" %}
{% load docbow %}
{% load i18n %}
{% load humanize %}
{% load url from future %}
{% block table.tbody.row %}
<tr class="js-mailbox-row {% cycle "odd" "even" as parity %}" data-id="{{ row.record.id }}">
{% for column, cell in row.items %}
<td {{ column.attrs.td.as_html }}>{{ cell }}</td>
{% endfor %}
</tr>
{% block replies %}
{% for reply in row.record.document.replies.all %}
<tr class="{{parity }} reply">
<td class="reply" colspan="7">
<a href="{% url 'outbox-by-document-message' document_id=reply.id %}">
{% blocktrans with sender=reply|doc_real_sender date=reply.date|naturalday:"SHORT_DATE_FORMAT" time=reply.date|time:"H:i" %}Reply sent by {{ sender }} on {{ date }} at {{ time }}{% endblocktrans %}
</a>
</td>
</tr>
{% endfor %}
{% endblock %}
{% endblock %}
{% block pagination.cardinality %}
<li class="cardinality">
<span>{% if total != count %}{{ count }} de {{ total }}{% else %}{{ total }}{% endif %} {% if total == 1 %}document{% else %}documents{% endif %}</span>
/ <a href="{% block csv.url %}{% endblock %}?{{ request.GET.urlencode }}">Export CSV</a>
/ <a href="{% block ods.url %}{% endblock %}?{{ request.GET.urlencode }}">Export ODS</a>
</li>
{% endblock %}