summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/webtemplates/results.html
blob: 439c606c9b656a4d87cb6ab85981c7314c26bcc4 (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
47
{% 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 }}/copy">copy</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 %}