root / templates / user_routes.html @ 064ecc91
History | View | Annotate | Download (1.6 kB)
1 |
{% extends "base.html" %} |
---|---|
2 |
{% load i18n %} |
3 |
{% block extrahead %} |
4 |
<script type="text/javascript" src="/static/js/jquery.dataTables.js"></script> |
5 |
<script type="text/javascript"> |
6 |
$(document).ready( function(){
|
7 |
$('#routes_table').dataTable( {
|
8 |
"bJQueryUI": true,
|
9 |
"oLanguage": {
|
10 |
"sLengthMenu": '{% trans "Display" %} <select><option value="25">25</option><option value="50">50</option><option value="-1">{% trans "All" %}</option></select> rules'
|
11 |
},
|
12 |
"iDisplayLength": 25,
|
13 |
} );
|
14 |
});
|
15 |
</script>
|
16 |
{% endblock %} |
17 |
{% block title %}{% trans "My routes" %}{% endblock %} |
18 |
{% block content %} |
19 |
<h3>{% trans "My routes" %}</h3> |
20 |
|
21 |
<table class="display" width="100%" id="routes_table"> |
22 |
<thead>
|
23 |
<tr>
|
24 |
<th>{% trans "Name" %}</th> |
25 |
<th>{% trans "Match" %}</th> |
26 |
<th style="text-align: center;">{% trans "Then" %}</th> |
27 |
<th style="text-align: center;">{% trans "Status" %}</th> |
28 |
{% comment %}<th style="text-align: center;">{% trans "Details" %}</th>{% endcomment %} |
29 |
<th style="text-align: center;">{% trans "Expires" %}</th> |
30 |
</tr>
|
31 |
</thead>
|
32 |
|
33 |
<tbody>
|
34 |
{% for route in routes %} |
35 |
|
36 |
<tr {% if %} class="GradeA" {% else %} class="GradeX" {% endif %}> |
37 |
<td>{{ route.name }}</td> |
38 |
<td>{{ route.get_match|safe|escape }}</td> |
39 |
<td style="text-align: center;">{{route.get_then|safe|escape}}</td> |
40 |
<td style="text-align: center;">{% if route.is_online %}Online{% else %}Offline{% endif %}</td> |
41 |
{% comment %}<td style="text-align: center;">{{ route.response }}</td>{% endcomment %} |
42 |
<td style="text-align: center;">{{ route.expires }}</td> |
43 |
</tr>
|
44 |
|
45 |
{% endfor %} |
46 |
</tbody>
|
47 |
</table>
|
48 |
|
49 |
{% endblock %} |