blob: e3befb0eb120f5e565c9275e9f8023270766c95d (
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
|
{% extends "base-timeview.html" %}
{% load bcfg2_tags %}
{% comment %}
This is needed for Django versions less than 1.5
{% endcomment %}
{% load url from future %}
{% block title %}Bcfg2 - Entry Status{% endblock %}
{% block extra_header_info %}
{% endblock%}
{% block pagebanner %}{{ entry.entry_type }} entry {{ entry.name }} status{% endblock %}
{% block content %}
{% filter_navigator %}
{% if items %}
<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 item, inters in items %}
{% for inter in inters %}
<tr class='{% cycle listview,listview_alt %}'>
<td><a href='{% url "reports_client_detail" hostname=inter.client.name %}'>{{inter.client.name}}</a></td>
<td><a href='{% url "reports_client_detail_pk" hostname=inter.client.name pk=inter.pk %}'>{{inter.timestamp|date:"Y-m-d\&\n\b\s\p\;H:i"|safe}}</a></td>
<td>{{ item.get_state_display }}</td>
<td style='white-space: nowrap'><a href='{% url "reports_item" entry_type=item.class_name pk=item.pk %}'>({{item.pk}}) {{item.short_list|join:","}}</a></td>
</tr>
{% endfor %}
{% endfor %}
</table>
</div>
{% else %}
<p>There are currently no hosts with this configuration entry.</p>
{% endif %}
{% endblock %}
|