summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/reports/templates/config_items/index.html
blob: 313e286332d1c993ce66cd2a172f7d29535289e4 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{% extends "base.html" %}

{% load syntax_coloring %}

{% block extra_header_info %}
<link rel="stylesheet" type="text/css" href="{% url Bcfg2.Server.Reports.reports.views.client_index %}../site_media/syntax-coloring.css" />
<script type="text/javascript" src="{% url Bcfg2.Server.Reports.reports.views.client_index %}../site_media/CalendarPopup.js"></script>
<script language="JavaScript" type="text/javascript">var cal = new CalendarPopup();</script>
{% endblock%}
{% block title %}Configuration Element Details{% endblock %}

{% block pagebanner %}
  <div class="header">
      <h1>Configuration Element Details</h1>
  </div>
  <br/>
{% endblock %}

{% block content %}

{% ifequal mod_or_bad "bad" %}
<div class="bad">
<h2>Bad {{item.entry.kind}}: {{item.entry.name}}</h2>
</div>
{% else %}
<div class="modified">
<h2>Modified {{item.entry.kind}}: {{item.entry.name}}</h2>
</div>
{% endifequal %}
<center>
<table border=1 padding=0 >
<tr><th>Reason</th><th>Current Status</th><th>Specified in bcfg2</th></tr>
{% if item.reason.current_owner %}
<tr><td align="right"><b>Owner: </b></td><td>{{item.reason.current_owner}}</td><td>{{item.reason.owner}}</td></tr>
{% endif %}{% if item.reason.current_group %}
<tr><td align="right"><b>Group: </b></td><td>{{item.reason.current_group}}</td><td>{{item.reason.group}}</td></tr>
{% endif %}{% if item.reason.current_perms %}
<tr><td align="right"><b>Permissions: </b></td><td>{{item.reason.current_perms}}</td><td>{{item.reason.perms}}</td></tr>
{% endif %}{% if item.reason.current_status %}
<tr><td align="right"><b>Status: </b></td><td>{{item.reason.current_status}}</td><td>{{item.reason.status}}</td></tr>
{% endif %}{% if item.reason.current_to %}
<tr><td align="right"><b>Link Destination: </b></td><td>{{item.reason.current_to}}</td><td>{{item.reason.to}}</td></tr>
{% endif %}{% if item.reason.current_version %}
<tr><td align="right"><b>Version: </b></td><td>{{item.reason.current_version}}</td><td>{{item.reason.version}}</td></tr>
{% endif %}{% if not item.reason.current_exists %}
<tr><td align="right"><b>Existence: </b></td><td colspan=2>This item does not currently exist on the host but is specified to exist in the configuration.</td></tr>
{% endif %}{% if item.reason.current_diff %}
<tr><td align="right"><b>NDiff: </b></td><td colspan=2><pre>{{item.reason.current_diff|syntaxhilight:"diff"}}</pre></td></tr>
{% endif %}
</table></center>
<hr/>
<div>
<span class="mini-date">
<b>Enter date or use calendar popup: </b>
</span>
<form name="timestamp-select" action="{{path}}" method="get">
<span class="mini-date">
<input type="text" name="date1" value="{{timestamp_date}}" size="10" />@
<input type="text" name="time" value="{{timestamp_time}}" size="8" />
<a href="#" onClick="cal.select(document.forms['timestamp-select'].date1,'anchor1','yyyy-MM-dd'); return false;"
   name="anchor1" ID="anchor1">Calendar</A>
{% ifequal mod_or_bad "modified" %}
    <input type="button"
           name="go"
           value="Go"
           onClick="location.href='{% url Bcfg2.Server.Reports.reports.views.config_item_modified eyedee=item.entry.id%}'+document.forms['timestamp-select'].date1.value+'@'+document.forms['timestamp-select'].time.value;" />
    | <input type="button"
             name="now"
             value="Now"
             onClick="location.href='{% url Bcfg2.Server.Reports.reports.views.config_item_modified eyedee=item.entry.id%}';"/>
{% else %}
    <input type="button"
           name="go"
           value="Go"
           onClick="location.href='{% url Bcfg2.Server.Reports.reports.views.config_item_bad eyedee=item.entry.id %}'+document.forms['timestamp-select'].date1.value+'@'+document.forms['timestamp-select'].time.value;"/>
    | <input type="button"
             name="now"
             value="Now"
             onClick="location.href='{% url Bcfg2.Server.Reports.reports.views.config_item_bad eyedee=item.entry.id %}';"/>
{% endifequal %}
</span></form>
<br/><br/><br/></div>
{% if associated_client_list %}
    <p>The following clients had this problem as of {{timestamp_date}}@{{timestamp_time}}:</p>
    {% for client in associated_client_list %}
        <a href="{% url Bcfg2.Server.Reports.reports.views.client_detail client.name %}">{{client.name}}</a><br/>
    {% endfor %}
    <br />
    <br />
{% else %}
    <p>No Clients had this problem at {{timestamp}}</p>
{% endif %}







{% endblock %}