{% import "utils.html" as utils %}

{% extends "layout.html" %}
{% set components = [(ts.name, v4_url_for(".v4_recent_activity"))] %}
{% block title %}Machines{%endblock%}

{% block body %}
  {{ utils.regex_filter_box('filter', '.searchable tr', "Machines...") }}

  <section id="machines" />
  {# List all Machines which reported for this database. #}
  <h3>Machines</h3>
  <table class="table table-striped table-hover table-condensed">
    <thead>
      <tr>
        <th>Name</th>
      </tr>
    </thead>
    <tbody class="searchable">
      {# Show the active submissions. #}
      {% for m in machines %}
      <tr>
        <td>{{ utils.render_machine(m) }}</td>
      </tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
