summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html
blob: 5f7579eb9b08c0ca0784dda0a5a3c884582d74e0 (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
{% extends "base-timeview.html" %}
{% load bcfg2_tags %}

{% block title %}Bcfg2 - Entry Status{% endblock %}

{% block extra_header_info %}
{% endblock%}

{% block pagebanner %}{{ entry.kind }} entry {{ entry.name }} status{% endblock %}

{% block content %}
{% filter_navigator %}
{% if item_data %}
    <div class='entry_list'>
      <table class='entry_list'>
          <tr style='text-align: left' ><th>Name</th><th>Timestamp</th><th>State</th><th>Reason</th></tr>
        {% for ei, inter, reason in item_data %}
          <tr class='{% cycle listview,listview_alt %}'>
            <td><a href='{% url Bcfg2.Server.Reports.reports.views.client_detail hostname=inter.client.name, pk=inter.id %}'>{{ inter.client.name }}</a></td>
            <td style='white-space: nowrap'><a href='{% url Bcfg2.Server.Reports.reports.views.client_detail hostname=inter.client.name, pk=inter.id %}'>{{ inter.timestamp|date:"Y-m-d\&\n\b\s\p\;H:i"|safe }}</a></td>
            <td>{{ ei.get_type_display }}</td>
            <td style='white-space: nowrap'><a href="{% url reports_item type=ei.get_type_display pk=ei.pk %}">{{ reason.short_list|join:"," }}</a></td>
          </tr>
        {% endfor %}
      </table>
    </div>
{% else %}
    <p>There are currently no hosts with this configuration entry.</p>
{% endif %}
{% endblock %}