From 5d36c165a931fb9d9b49e1123d8d0647942339c1 Mon Sep 17 00:00:00 2001
From: Narayan Desai
Date: Wed, 20 Aug 2008 15:50:31 +0000
Subject: Add reporting system schema evolution support (from Stousignant)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4884 ce84e21b-d406-0410-9b95-82705330c041
---
.../reports/templates/clients/client-nodebox.html | 26 +++++++++++-----------
.../reports/templates/config_items/listing.html | 4 ++--
2 files changed, 15 insertions(+), 15 deletions(-)
(limited to 'src/lib/Server/Reports/reports/templates')
diff --git a/src/lib/Server/Reports/reports/templates/clients/client-nodebox.html b/src/lib/Server/Reports/reports/templates/clients/client-nodebox.html
index 77621cace..88cf05345 100644
--- a/src/lib/Server/Reports/reports/templates/clients/client-nodebox.html
+++ b/src/lib/Server/Reports/reports/templates/clients/client-nodebox.html
@@ -26,33 +26,33 @@
This node did not run within the last 24 hours-- it may be out of date.
- {% endif %}
- {% if interaction.bad_items.all %}
+ {% endif %}
+ {% if interaction.bad %}
-
items did not verify and are considered Dirty.
+
items did not verify and are considered Dirty.
- {% for bad in interaction.bad_items.all|sortwell %}
- - {{bad.kind}}: {{bad.name}}
+ {% for bad in interaction.bad|sortwell %}
+ - {{bad.entry.kind}}: {{bad.entry.name}}
{% endfor %}
{% endif %}
- {% if interaction.modified_items.all %}
+ {% if interaction.modified %}
-
items were modified in the last run.
+
items were modified in the last run.
- {% for modified in interaction.modified_items.all|sortwell %}
- - {{modified.kind}}: {{modified.name}}
+ {% for modified in interaction.modified|sortwell %}
+ - {{modified.entry.kind}}: {{modified.name}}
{% endfor %}
{% endif %}
- {% if interaction.extra_items.all %}
+ {% if interaction.extra %}
diff --git a/src/lib/Server/Reports/reports/templates/config_items/listing.html b/src/lib/Server/Reports/reports/templates/config_items/listing.html
index f3be1e4d5..1dba4bd6d 100644
--- a/src/lib/Server/Reports/reports/templates/config_items/listing.html
+++ b/src/lib/Server/Reports/reports/templates/config_items/listing.html
@@ -15,7 +15,7 @@ YAHOO.example.init = function( ){
{% for item_list in item_list_pseudodict %}
tabView.addTab( new YAHOO.widget.Tab({
label: '{{item_list.0}}',
- content: '{% for item in item_list.1|sortwell %}- {{item.kind}}: {% ifequal mod_or_bad "modified" %}{{item.name}}{% else %}{{item.name}}{% endifequal %}
{% endfor %}
',
+ content: '',
active: 'True'
}));
{% endfor %}
@@ -48,4 +48,4 @@ YAHOO.example.init();
{% else %}
There are currently no inconsistent configuration entries.
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
--
cgit v1.2.3-1-g7c22