source: subversion/sites/other/tilesAtHome_tahngo/templates/user_show_specific.html @ 9790

Last change on this file since 9790 was 9709, checked in by spaetz, 11 years ago

show recently finished requests on the user page.

File size: 1.6 KB
Line 
1{% extends "base_user.html" %}
2{% block title %}t@h Show Users{% endblock %}
3{% block breadcrumb %}{{ block.super }} <a href="{% url tah.user.views.show_user %}">&raquo;Show</a> {% endblock %}
4
5{% block heading %}t@h Show Users{% endblock %}
6{% block content %}
7<table border="1" align="center">
8  <tr><td>id</td><td>User</td><td>Rendered Tiles</td><td>Uploaded KB</td><td>Last activity</td></tr>
9  <tr><td>{{ user.user.pk }}</td><td>{{ user.user.username }}</td><td>{{ user.renderedTiles }}</td><td>{{ user.kb_upload }}</td><td>{{ user.last_activity|timesince }}</td></tr>
10</table>
11
12<h3>Current active requests</h3>
13<table border="1" align="center">
14  <tr><td>x,y</td><td>zoom</td><td>Priority</td><td>Requested since</td><td>Last client activity</td><td>Layer</td></tr>
15  {% for req in active_reqs %}
16  <tr><td><a href="{% url tah.browse.views.tiledetails "tile",req.min_z,req.x,req.y %}">{{ req.x }},{{ req.y }}</a></td><td>{{ req.min_z }}-{{ req.max_z }}</td><td>{{ req.priority }}</td><td>{{ req.request_time|timesince }}</td><td>{{ req.clientping_time|timesince }}</td><td>{{ req.layers_str }}</td></tr>
17  {% endfor %}
18</table>
19
20<h3>Recently finished requests</h3>
21<table border="1" align="center">
22  <tr><td>x,y</td><td>zoom</td><td>Priority</td><td>Requested since</td><td>Uploaded</td></tr>
23  {% for req in finished_reqs %}
24  <tr><td><a href="{% url tah.browse.views.tiledetails "tile",req.min_z,req.x,req.y %}">{{ req.x }},{{ req.y }}</a></td><td>{{ req.min_z }}-{{ req.max_z }}</td><td>{{ req.priority }}</td><td>{{ req.request_time|timesince }}</td><td>{{ req.clientping_time|timesince }}</td></tr>
25  {% endfor %}
26</table>
27
28{% endblock %}
Note: See TracBrowser for help on using the repository browser.