forked from extern/django-helpdesk
47 lines
2.7 KiB
HTML
47 lines
2.7 KiB
HTML
{% load i18n humanize %}
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="panel panel-primary">
|
|
<div class="panel-heading">
|
|
{% if ticket_list_caption %}{{ ticket_list_caption }}{% else %}{% trans "Your Tickets" %}{% endif %}
|
|
</div>
|
|
<!-- /.panel-heading -->
|
|
<div class="panel-body">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{% trans "Pr" %}</th>
|
|
<th>{% trans "Title" %}</th>
|
|
<th>{% trans "Queue" %}</th>
|
|
<th>{% trans "Status" %}</th>
|
|
<th>{% trans "Last Update" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for ticket in ticket_list %}
|
|
<tr class="{{ ticket.get_priority_css_class }}">
|
|
<td><a href='{{ ticket.get_absolute_url }}'>{{ ticket.ticket }}</a></td>
|
|
<td>{{ ticket.priority }}</td>
|
|
<td><a href='{{ ticket.get_absolute_url }}'>{{ ticket.title }}</a></td>
|
|
<td>{{ ticket.queue }}</td>
|
|
<td>{{ ticket.get_status }}</td>
|
|
<td><span title='{{ ticket.modified|date:"r" }}'>{{ ticket.modified|naturaltime }}</span></td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>{% if ticket_list_empty_message %}<td colspan='6'>{{ ticket_list_empty_message }}</td>{% else %}<td colspan='6'>{% trans "You do not have any pending tickets." %}</td>{% endif %}</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /.table-responsive -->
|
|
</div>
|
|
<!-- /.panel-body -->
|
|
</div>
|
|
<!-- /.panel -->
|
|
</div>
|
|
</div>
|
|
|