Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117879264
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/puppetboard/static/css/puppetboard.css b/puppetboard/static/css/puppetboard.css
index 3e54c34..99188e9 100644
--- a/puppetboard/static/css/puppetboard.css
+++ b/puppetboard/static/css/puppetboard.css
@@ -1,89 +1,101 @@
body {
padding-top: 60px;
}
th.headerSortUp {
position: relative
}
th.headerSortDown {
position: relative
}
th.header {
position: relative
}
th.header:after {
content: "\f0dc";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
color: #000;
font-size: 18px;
padding-right: 0.5em;
float:right;
}
th.headerSortUp:after {
content: "\f0de";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
color: #000;
font-size: 18px;
padding-right: 0.5em;
float:right;
}
th.headerSortDown:after {
content: "\f0dd";
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
text-decoration: inherit;
color: #000;
font-size: 18px;
padding-right: 0.5em;
float:right;
}
.stat {
margin-bottom: 40px;
}
.navbar .brand:hover {
color: #fff;
}
.table tbody tr.error>td {
background-color: #f2dede;
}
h1.error {
color: rgb(223, 46, 27);
}
h1.success {
color: #18BC9C;
}
h1.noop {
color:#aaa;
}
+tr.event {
+ cursor: pointer;
+}
+td.message {
+ padding: 0;
+ border: 0;
+ background-color: #FFFFE9;
+}
+div[id^='message-event'] {
+ display: none;
+ padding: 4px 15px 4px 15px;
+}
.label-count {
width:25px;
text-align:center;
}
.label-time {
width:73px;
text-align:center;
}
.label-status {
width:100px;
text-align:center;
}
.label-nothing {
background-color:#ddd;
color:#ddd;
}
.label.label-failed {
background-color: rgb(231, 76, 60);
}
.label.label-changed {
background-color: rgb(24, 188, 156);
}
.label.label-unreported {
background-color: rgb(231, 76, 60);
background-color: rgb(129, 145, 146);
}
diff --git a/puppetboard/templates/report.html b/puppetboard/templates/report.html
index a131dc5..00fa878 100644
--- a/puppetboard/templates/report.html
+++ b/puppetboard/templates/report.html
@@ -1,62 +1,75 @@
{% extends 'layout.html' %}
{% block content %}
<h1>Summary</h1>
<table class='table table-striped'>
<thead>
<tr>
<th>Hostname</th>
<th>Configuration version</th>
<th>Start time</th>
<th>End time</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{report.node}}</td>
<td>
{{report.version}}
</td>
<td rel="utctimestamp">
{{report.start}}
</td>
<td rel="utctimestamp">
{{report.end}}
</td>
</tr>
</tbody>
</table>
<h1>Events</h1>
<table class='table table-striped table-condensed'>
<thead>
<tr>
<th>Resource</th>
<th>Status</th>
<th>Changed From</th>
<th>Changed To</th>
</tr>
</thead>
<tbody>
{% for event in events %}
{% if not event.failed and event.item['old'] != event.item['new'] %}
- <tr class='success'>
+ <tr id='event-{{loop.index}}' class='success event'>
{% elif event.failed %}
- <tr class='error'>
+ <tr id='event-{{loop.index}}' class='error event'>
{% endif %}
<td>{{event.item['type']}}[{{event.item['title']}}]</td>
<td>{{event.status}}</td>
<td>{{event.item['old']}}</td>
<td>{{event.item['new']}}</td>
</tr>
+ {% if event.item['message'] %}
+ <tr>
+ <td class='message' colspan='4'>
+ <div id='message-event-{{loop.index}}'>
+ {{event.item['message']}}
+ </div>
+ </td>
+ </tr>
+ {% endif %}
{% endfor %}
</tbody>
</table>
{% endblock content %}
{% block script %}
<script type='text/javascript'>
jQuery(function ($) {
$("[rel=tooltip]").tooltip();
+ $(".event").click(function() {
+ $("#message-" + this.id).slideToggle(200);
+ return false;
+ });
});
</script>
{% endblock script %}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Apr 5, 10:52 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831482
Default Alt Text
(3 KB)
Attached To
Mode
rPB puppetboard
Attached
Detach File
Event Timeline