blob: cc99ef503c55b8715fd55e646ac17bb576b933cc (
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
{% extends "base.html" %}
{% load syntax_coloring %}
{% block title %}Bcfg2 - Element Details{% endblock %}
{% block extra_header_info %}
<style type="text/css">
#table_list_header {
font-size: 100%;
}
table.entry_list {
width: auto;
}
div.information_wrapper {
margin: 15px;
}
div.diff_wrapper {
overflow: auto;
}
div.entry_list h3 {
font-size: 90%;
padding: 5px;
}
</style>
{% endblock%}
{% block pagebanner %}Element Details{% endblock %}
{% block content %}
<div class='detail_header'>
<h3>{{mod_or_bad|capfirst}} {{item.entry.kind}}: {{item.entry.name}}</h3>
</div>
<div class="information_wrapper">
{% if isextra %}
<p>This item exists on the host but is not defined in the configuration.</p>
{% endif %}
{% if not item.reason.current_exists %}
<div class="warning">This item does not currently exist on the host but is specified to exist in the configuration.</div>
{% endif %}
{% if item.reason.current_owner or item.reason.current_group or item.reason.current_perms or item.reason.current_status or item.reason.current_status or item.reason.current_to or item.reason.current_version %}
<table class='entry_list'>
<tr id='table_list_header'>
<td style='text-align: right;'>Problem Type</td><td>Expected</td><td style='border-bottom: 1px solid #98DBCC;'>Found</td></tr>
{% if item.reason.current_owner %}
<tr><td style='text-align: right'><b>Owner</b></td><td>{{item.reason.owner}}</td>
<td>{{item.reason.current_owner}}</td></tr>
{% endif %}
{% if item.reason.current_group %}
<tr><td style='text-align: right'><b>Group</b></td><td>{{item.reason.group}}</td>
<td>{{item.reason.current_group}}</td></tr>
{% endif %}
{% if item.reason.current_perms %}
<tr><td style='text-align: right'><b>Permissions</b></td><td>{{item.reason.perms}}</td>
<td>{{item.reason.current_perms}}</td></tr>
{% endif %}
{% if item.reason.current_status %}
<tr><td style='text-align: right'><b>Status</b></td><td>{{item.reason.status}}</td>
<td>{{item.reason.current_status}}</td></tr>
{% endif %}
{% if item.reason.current_to %}
<tr><td style='text-align: right'><b>Symlink Target</b></td><td>{{item.reason.to}}</td>
<td>{{item.reason.current_to}}</td></tr>
{% endif %}
{% if item.reason.current_version %}
<tr><td style='text-align: right'><b>Package Version</b></td><td>{{item.reason.version|cut:"("|cut:")"}}</td>
<td>{{item.reason.current_version|cut:"("|cut:")"}}</td></tr>
{% endif %}
</table>
{% endif %}
{% if item.reason.current_diff or item.reason.is_sensitive %}
<div class='entry_list'>
<div class='entry_list_head'>
{% if item.reason.is_sensitive %}
<h3>File contents unavailable, as they might contain sensitive data.</h3>
{% else %}
<h3>Incorrect file contents</h3>
{% endif %}
</div>
{% if not item.reason.is_sensitive %}
<div class='diff_wrapper'>
{{ item.reason.current_diff|syntaxhilight }}
</div>
{% endif %}
</div>
{% endif %}
<div class='entry_list'>
<div class='entry_list_head'>
<h3>Occurences on {{ timestamp|date:"Y-m-d" }}</h3>
</div>
{% if associated_list %}
<table class="entry_list" cellpadding="3">
{% for inter in associated_list %}
<tr><td><a href="{% url reports_client_detail inter.client.name %}"
>{{inter.client.name}}</a></td>
<td><a href="{% url reports_client_detail_pk hostname=inter.client.name,pk=inter.id %}"
>{{inter.timestamp}}</a></td>
</tr>
{% endfor %}
</table>
{% else %}
<p>Missing client list</p>
{% endif %}
</div>
</div><!-- information_wrapper -->
{% endblock %}
|