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 %}
- {{interaction.bad_items.count}} items did not verify and are considered Dirty.
+ {{interaction.bad.count}} 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 %}
- {{interaction.modified_items.count}} items were modified in the last run.
+ {{interaction.modified.count}} 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 %}
- {{interaction.extra_items.count}} extra configuration elements on the node.
+ {{interaction.extra.count}} extra configuration elements on the node.
    - {% for extra in interaction.extra_items.all|sortwell %} -
  • {{extra.kind}}: {{extra.name}}
  • + {% for extra in interaction.extra|sortwell %} +
  • {{extra.entry.kind}}: {{extra.entry.name}}
  • {% endfor %}
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: '

', + 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