summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Reports/reports/templates/config_items
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-06-14 12:04:31 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-06-14 12:04:31 -0500
commit08ee6ed4397bdd2c8d1539b5300cd12b3c750246 (patch)
tree4f69ee68d0b1cdcdbdc5f2d4ff89e6ba5e8be41e /src/lib/Bcfg2/Server/Reports/reports/templates/config_items
parent591200dab6feb2a5f9f42292fc92e778591a8a38 (diff)
downloadbcfg2-08ee6ed4397bdd2c8d1539b5300cd12b3c750246.tar.gz
bcfg2-08ee6ed4397bdd2c8d1539b5300cd12b3c750246.tar.bz2
bcfg2-08ee6ed4397bdd2c8d1539b5300cd12b3c750246.zip
web_reports: Add entry view
Diffstat (limited to 'src/lib/Bcfg2/Server/Reports/reports/templates/config_items')
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html
new file mode 100644
index 000000000..e828ff645
--- /dev/null
+++ b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/entry_status.html
@@ -0,0 +1,30 @@
+{% extends "base-timeview.html" %}
+{% load bcfg2_tags %}
+
+{% block title %}Bcfg2 - Entry Status{% endblock %}
+
+{% block extra_header_info %}
+{% endblock%}
+
+{% block pagebanner %}{{ entry.kind }} entry {{ entry.name }} status{% endblock %}
+
+{% block content %}
+{% filter_navigator %}
+{% if item_data %}
+ <div class='entry_list'>
+ <table class='entry_list'>
+ <tr style='text-align: left' ><th>Name</th><th>Timestamp</th><th>State</th><th>Reason</th></tr>
+ {% for ei, inter, reason in item_data %}
+ <tr class='{% cycle listview,listview_alt %}'>
+ <td>{{ inter.client.name }}</td>
+ <td style='white-space: nowrap'>{{ inter.timestamp|date:"Y-m-d\&\n\b\s\p\;H:i"|safe }}</td>
+ <td>{{ ei.get_type_display }}</td>
+ <td style='white-space: nowrap'>{{ reason.short_list|join:"," }}</td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+{% else %}
+ <p>There are currently no hosts with this configuration entry.</p>
+{% endif %}
+{% endblock %}