1 {% extends "base.html" %}
4 <script type="text/javascript" src="/static/js/jquery.dataTables.js"></script>
5 <script type="text/javascript">
6 $(document).ready( function(){
7 $('#create_dialog').dialog({
13 $('#routes_table').dataTable( {
16 "sLengthMenu": '{% trans "Display" %} <select><option value="25">25</option><option value="50">50</option><option value="-1">{% trans "All" %}</option></select> rules'
20 $( ".button_place #routebutton" ).button({
22 primary: "ui-icon-circle-plus"
32 {% block title %}{% trans "My routes" %}{% endblock %}
34 <div style="float:left">
35 <h3 style="margin-top: 0px;">{% trans "My routes" %}</h3>
37 <div class='button_place' style="float:right">
38 <a href="{% url add-route %}" id="routebutton">Add Route</a>
41 <table class="display" width="100%" id="routes_table">
44 <th>{% trans "Name" %}</th>
45 <th>{% trans "Match" %}</th>
46 <th style="text-align: center;">{% trans "Then" %}</th>
47 <th style="text-align: center;">{% trans "Status" %}</th>
48 {% comment %}<th style="text-align: center;">{% trans "Details" %}</th>{% endcomment %}
49 <th style="text-align: center;">{% trans "Expires" %}</th>
50 <th style="text-align: center;">{% trans "Response" %}</th>
55 {% for route in routes %}
57 <tr {% if route.is_online %} class="GradeA" {% else %} class="GradeX" {% endif %}>
58 <td>{{ route.name }}</td>
59 <td>{{ route.get_match|safe|escape }}</td>
60 <td style="text-align: center;">{{route.get_then|safe|escape}}</td>
61 <td style="text-align: center;">{% if route.is_online %}Online{% else %}Offline{% endif %}</td>
62 {% comment %}<td style="text-align: center;">{{ route.response }}</td>{% endcomment %}
63 <td style="text-align: center;">{{ route.expires }}</td>
64 <td style="text-align: center;">{{ route.response }}</td>
71 <div id="create_dialog" title="Add a new Route">