geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 99eadfccc51fc7bd71b66c0966f2e2e1cb6a7694
parent 05c25d7c441f6a2d2f590d3242910884620dd720
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Mon, 16 Nov 2020 08:01:10 -0500

[serve] Fix formatting of dates on statistics page

Similar to the footer, these dates just need to be passed to the
datetime formatter GUS has defined for Jinja templates.

Diffstat:
Mserve/templates/statistics.gmi | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/serve/templates/statistics.gmi b/serve/templates/statistics.gmi @@ -5,7 +5,7 @@ ### Overall -These figures are representative of the aggregate size of Geminispace at the time the current index was last updated on {{ index_modification_time }}. +These figures are representative of the aggregate size of Geminispace at the time the current index was last updated on {{ index_modification_time | datetimeformat }}. ``` Page Count : {{ "{:>5}".format(statistics.page_count) }} @@ -16,7 +16,7 @@ Domain Count : {{ "{:>5}".format(statistics.domain_count) }} ### By Content Type -These figures are representative of the number of pages seen per content type at the time the current index was last updated on {{ index_modification_time }}. +These figures are representative of the number of pages seen per content type at the time the current index was last updated on {{ index_modification_time | datetimeformat }}. ``` {% for entry in statistics.content_type_frequencies %} @@ -26,7 +26,7 @@ These figures are representative of the number of pages seen per content type at ### By Charset -These figures are representative of the number of pages seen per content type at the time the current index was last updated on {{ index_modification_time }}. +These figures are representative of the number of pages seen per content type at the time the current index was last updated on {{ index_modification_time | datetimeformat }}. ``` {% for entry in statistics.charset_frequencies %}