-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxies.html
63 lines (60 loc) · 1.92 KB
/
proxies.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{% extends "layout.html" %}
{% block title %}Proxies - {{ super() }}{% endblock %}
{% block content %}
<div class="panel-group" role="tablist">
<div class="panel panel-default">
<div class="panel-heading" role="tab">
<h3 class="panel-title">
<span class="glyphicon glyphicon-random"></span>
Proxies
</h3>
</div>
<table class="table table-condensed table-hover tablesorter">
<thead>
<tr>
<th>Project</th>
<th>Domain</th>
<th>Backend</th>
<th>Instance</th>
</tr>
</thead>
<tbody>
{% for proxy in proxies|sort(attribute='project') %}
<tr>
<td><a href="{{ url_for('project', project_id=proxy.project) }}" rel="nofollow">{{ proxy.project }}</a></td>
<td><a href="https://{{ proxy.domain }}/" rel="nofollow">{{ proxy.domain }}</a></td>
<td>
{% for backend in proxy.backends %}
{{ backend }}
{% endfor %}
</td>
<td>
{% for backend in proxy.backends %}
{% with fqdn=backend|extract_hostname %}
{% if fqdn %}
<a href="{{ url_for('server', fqdn=fqdn) }}" rel="nofollow">{{ fqdn }}</a>
{% else %}
Unknown
{% endif %}
{% endwith %}
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}
{% block css %}
<link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery.tablesorter/2.28.5/css/theme.default.min.css" crossorigin="anonymous">
{% endblock %}
{% block js %}
{{ super() }}
<script src="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery.tablesorter/2.28.5/js/jquery.tablesorter.min.js" crossorigin="anonymous"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".tablesorter").tablesorter();
});
</script>
{% endblock %}