{% extends "base.html" %}

{% block pagebanner %}
  <div class="header">
      <h2>Search Results</h2>
  </div>
  <br/>
{% endblock %}

{% block sidebar %}
{% include "navbar.tmpl" %}
{% include "logout.tmpl" %}
{% 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="50">
   <col width="*">
   <tr> <td><b>hostname</b></td>
   <td> <b>status</b> </td>
   </tr>
   {% for host in hosts %}
   <tr> <td>{{ host.0 }}</td>
   <td> {{ host.2 }} </td>
   <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 }}/logs">logs</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 %}
