From 9d09f75855d892b9add92cfdf3764bc7ca932fcb Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Thu, 9 Jan 2025 16:18:47 -0800 Subject: [PATCH] draft dash --- app/main/views/jobs.py | 6 +++--- app/templates/views/dashboard/dashboard.html | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/main/views/jobs.py b/app/main/views/jobs.py index 784a37835..09462d0d6 100644 --- a/app/main/views/jobs.py +++ b/app/main/views/jobs.py @@ -344,7 +344,7 @@ def _get_job_counts(job): ''', dir(job)) - print(job.notifications_sending) + print(job.notification_count) job_type = job.template_type return [ @@ -362,7 +362,7 @@ def _get_job_counts(job): for label, query_param, count in [ [ Markup( - f"""total + f"""total notification_count {"text message" if job_type == "sms" else job_type}s""" ), "", @@ -370,7 +370,7 @@ def _get_job_counts(job): ], [ Markup( - f"""pending--fdsjfisodj + f"""pending notifications_sending {message_count_noun(job.notifications_sending, job_type)}""" ), "pending", diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index 80a957e14..04abe1afc 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -25,8 +25,13 @@

{{ current_service.name }} Dashboard

{{ ajax_block(partials, updates_url, 'inbox') }} - {{ ajax_block(partials, updates_url, 'activity') }} +
+

Total messages

+ +
+
+

Recent activity