blob: 43cb78f67132947b46618b6aedda9f691b285ceb (
plain)
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
|
{% extends "base.html" %}
{% block pagebanner %}
<div class="header">
<h2>Search Results</h2>
</div>
<br/>
{% endblock %}
{% block sidebar %}
{% include "navbar" %}
{% include "logout" %}
{% endblock %}
{% block content %}
{% if hosts %}
<table border="0" width="100%">
<colgroup>
<col width="200">
<col width="75">
<col width="50">
<col width="50">
<col width="*">
<tr> <td><b>hostname</b></td>
<td> <b>status</b> </td>
</tr>
{% for host in hosts %}
<tr> <td>{{ host.0 }}</td>
{% if host.2 %}
<td> active </td>
{% else %}
<td> inactive </td>
{% endif %}
<td> <a href="{{ host.1 }}">view</a> </td>
<td> <a href="{{ host.1 }}/edit">edit</a> </td>
<!-- <td> <a href="{{ host.1 }}/remove">remove</a> </td> -->
</tr>
{% endfor %}
</table>
{% else %}
No hosts matched your query<br>
Click the back button on your browser to edit your search
{% endif %}
{% endblock %}
|