From 0b31ca5ab3b505e02bc8b35bdff52b05ca67f756 Mon Sep 17 00:00:00 2001 From: stvnrlly Date: Sat, 16 Dec 2023 22:11:26 -0500 Subject: [PATCH] remove big_number_simple --- app/templates/components/big-number.html | 16 ---------------- app/templates/views/platform-admin/index.html | 13 ++++++++----- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/app/templates/components/big-number.html b/app/templates/components/big-number.html index 52b0dadbe..6685bb258 100644 --- a/app/templates/components/big-number.html +++ b/app/templates/components/big-number.html @@ -57,19 +57,3 @@ {% endif %} {% endmacro %} - - -{% macro big_number_simple(number, label) %} - - - {% if number is number %} - {{ "{:,}".format(number) }} - {% else %} - {{ number }} - {% endif %} - - {% if label %} - {{ label }} - {% endif %} - -{% endmacro %} diff --git a/app/templates/views/platform-admin/index.html b/app/templates/views/platform-admin/index.html index 7d12873fa..a90da7224 100644 --- a/app/templates/views/platform-admin/index.html +++ b/app/templates/views/platform-admin/index.html @@ -1,5 +1,4 @@ {% extends "views/platform-admin/_base_template.html" %} -{% from "components/big-number.html" import big_number_simple %} {% from "components/status-box.html" import status_box %} {% from "components/form.html" import form_wrapper %} {% from "components/components/details/macro.njk" import usaDetails %} @@ -33,10 +32,14 @@
{% for noti_type in global_stats %}
- {{ big_number_simple( - noti_type.black_box.number, - noti_type.black_box.number|message_count_label(noti_type.black_box.notification_type) - ) }} + + + {{ "{:,}".format(noti_type.black_box.number) }} + + + {{ noti_type.black_box.number|message_count_label(noti_type.black_box.notification_type) }} + + {% for item in noti_type.other_data %} {{ status_box(