commit 974f2141967783f3cfcc42c3981c2f56430b650e
parent a5712854fde660e454456b734be56e41fd7f6c65
Author: Natalie Pendragon <natpen@natpen.net>
Date: Tue, 8 Dec 2020 10:10:58 -0500
[serve] Improve formatting of statistics page
The right-alignment of numbers stopped working since the number of
things in Geminispace got too big, so adding two extra spaces to each
alignment block.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/serve/templates/statistics.gmi b/serve/templates/statistics.gmi
@@ -8,8 +8,8 @@
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) }}
-Domain Count : {{ "{:>5}".format(statistics.domain_count) }}
+Page Count : {{ "{:>7}".format(statistics.page_count) }}
+Domain Count : {{ "{:>7}".format(statistics.domain_count) }}
```
=> /statistics/historical/overall historical data
@@ -20,7 +20,7 @@ These figures are representative of the number of pages seen per content type at
```
{% for entry in statistics.content_type_frequencies %}
-{{ "{:>5} - {}".format(entry["count"], entry["content_type"]) }}
+{{ "{:>7} - {}".format(entry["count"], entry["content_type"]) }}
{% endfor %}
```
@@ -30,7 +30,7 @@ These figures are representative of the number of pages seen per content type at
```
{% for entry in statistics.charset_frequencies %}
-{{ "{:>5} - {}".format(entry["count"], entry["charset"]) }}
+{{ "{:>7} - {}".format(entry["count"], entry["charset"]) }}
{% endfor %}
```