Download this file
tickets.html.svn-base
48 lines (42 with data), 1.4 kB
{% set hide_left_bar = True %}
{% extends g.theme.master %}
{% block title %}User stats{% endblock %}
{% block header %}
Statistics about {{user.display_name}}'s contribution – Tickets
{% endblock %}
{% block content %}
{% if user %}
{% if data %}
<h2>Statistics by category</h2>
<table>
<thead>
<tr>
<th>Category</th>
<th>Assigned tickets</th>
<th>Solved tickets</th>
<th>Revoked tickets</th>
<th>Average solving time</th>
</tr>
</thead>
<tbody>
{% for cat, el in data.items() %}
<tr>
<td>{% if cat %}{{cat.fullname}}{% else %}All categories{% endif %}</td>
<td>{{el.assigned}}</td>
<td>{{el.solved}}</td>
<td>{{el.revoked}}</td>
<td>
{% if el.averagesolvingtime %}
{{el.averagesolvingtime.days}} days,
{{el.averagesolvingtime.hours}} hours,
{{el.averagesolvingtime.minutes}} min
{% else %}n/a{% endif %}
</td>
{% endfor %}
</tr>
</tbody>
</table>
{% endif %}
<div class="grid-20"><a href="/userstats/{{user.username}}">Go back to general statistics</a></div>
{% endif %}
{% endblock %}