summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting/templates/clients/index.html
blob: d9c415c20104330c45d2f03507f068cdf5481f87 (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
{% extends "base-timeview.html" %}
{% load bcfg2_tags %}

{% block extra_header_info %}
{% endblock%}

{% block title %}Bcfg2 - Client Grid View{% endblock %}

{% block pagebanner %}Clients - Grid View{% endblock %}

{% block content %}
{% filter_navigator %}
{% if inter_list %}
  <table class='grid-view' align='center'>
  {% for inter in inter_list %}
    {% if forloop.first %}<tr>{% endif %}
      <td class='{{ inter|determine_client_state }}'>
          <a href="{% spaceless %}
              {% if not timestamp %}
                  {% url reports_client_detail inter.client.name %}
              {% else %}
                  {% url reports_client_detail_pk inter.client.name,inter.id %}
              {% endif %}
              {% endspaceless %}">{{ inter.client.name }}</a>
      </td>
    {% if forloop.last %}
      </tr>
    {% else %}
      {% if forloop.counter|divisibleby:"4" %}</tr><tr>{% endif %}
    {% endif %}
  {% endfor %}
  </table>
{% else %}
  <div class='client_list_box'>
  <p>No client records are available.</p>
  </div>
{% endif %}
{% endblock %}