diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-01-27 18:42:49 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2015-07-23 17:39:26 +0200 |
commit | 4b459822a94d1b73931c4afe997a214c4fcfade1 (patch) | |
tree | 338c5c0b04b20f39b30c7245d6ce8bdaa7c5e4af /src/lib/Bcfg2/Reporting/templates/config_items | |
parent | f733133c835193a884edcf34e5daff6365745d21 (diff) | |
download | bcfg2-4b459822a94d1b73931c4afe997a214c4fcfade1.tar.gz bcfg2-4b459822a94d1b73931c4afe997a214c4fcfade1.tar.bz2 bcfg2-4b459822a94d1b73931c4afe997a214c4fcfade1.zip |
Reporting/templates: Use configurable date formats.
Diffstat (limited to 'src/lib/Bcfg2/Reporting/templates/config_items')
-rw-r--r-- | src/lib/Bcfg2/Reporting/templates/config_items/entry_status.html | 4 | ||||
-rw-r--r-- | src/lib/Bcfg2/Reporting/templates/config_items/item.html | 2 |
2 files changed, 4 insertions, 2 deletions
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 %} <tr class='{% cycle listview,listview_alt %}'> <td><a href='{% url "reports_client_detail" hostname=inter.client.name %}'>{{inter.client.name}}</a></td> - <td><a href='{% url "reports_client_detail_pk" hostname=inter.client.name pk=inter.pk %}'>{{inter.timestamp|date:"Y-m-d\&\n\b\s\p\;H:i"|safe}}</a></td> + <td><a href='{% url "reports_client_detail_pk" hostname=inter.client.name pk=inter.pk %}' style="white-space: nowrap;"> + {{inter.timestamp|date:"SHORT_DATETIME_FORMAT"|safe}} + </a></td> <td>{{ item.get_state_display }}</td> <td style='white-space: nowrap'><a href='{% url "reports_item" entry_type=item.class_name pk=item.pk %}'>({{item.pk}}) {{item.short_list|join:","}}</a></td> </tr> 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 { <div class='entry_list'> <div class='entry_list_head'> - <h3>Occurences on {{ timestamp|date:"Y-m-d" }}</h3> + <h3>Occurences on {{ timestamp|date:"SHORT_DATE_FORMAT" }}</h3> </div> {% if associated_list %} <table class="entry_list" cellpadding="3"> |