From 4b459822a94d1b73931c4afe997a214c4fcfade1 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 27 Jan 2015 18:42:49 +0100 Subject: Reporting/templates: Use configurable date formats. --- src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html | 4 +++- src/lib/Bcfg2/Reporting/templates/config_items/item.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib/Bcfg2/Reporting/templates/config_items') diff --git a/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html b/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html index e3befb0eb..8a5d93690 100644 --- a/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html +++ b/src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html @@ -22,7 +22,9 @@ This is needed for Django versions less than 1.5 {% for inter in inters %} {{inter.client.name}} - {{inter.timestamp|date:"Y-m-d\&\n\b\s\p\;H:i"|safe}} + + {{inter.timestamp|date:"SHORT_DATETIME_FORMAT"|safe}} + {{ item.get_state_display }} ({{item.pk}}) {{item.short_list|join:","}} diff --git a/src/lib/Bcfg2/Reporting/templates/config_items/item.html b/src/lib/Bcfg2/Reporting/templates/config_items/item.html index c6e6df020..2e2fd36fa 100644 --- a/src/lib/Bcfg2/Reporting/templates/config_items/item.html +++ b/src/lib/Bcfg2/Reporting/templates/config_items/item.html @@ -130,7 +130,7 @@ div.entry_list h3 {
-

Occurences on {{ timestamp|date:"Y-m-d" }}

+

Occurences on {{ timestamp|date:"SHORT_DATE_FORMAT" }}

{% if associated_list %} -- cgit v1.2.3-1-g7c22