mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-15 15:28:50 -04:00
draft dash
This commit is contained in:
@@ -344,7 +344,7 @@ def _get_job_counts(job):
|
|||||||
|
|
||||||
|
|
||||||
''', dir(job))
|
''', dir(job))
|
||||||
print(job.notifications_sending)
|
print(job.notification_count)
|
||||||
|
|
||||||
job_type = job.template_type
|
job_type = job.template_type
|
||||||
return [
|
return [
|
||||||
@@ -362,7 +362,7 @@ def _get_job_counts(job):
|
|||||||
for label, query_param, count in [
|
for label, query_param, count in [
|
||||||
[
|
[
|
||||||
Markup(
|
Markup(
|
||||||
f"""total<span class="usa-sr-only">
|
f"""total notification_count<span class="usa-sr-only">
|
||||||
{"text message" if job_type == "sms" else job_type}s</span>"""
|
{"text message" if job_type == "sms" else job_type}s</span>"""
|
||||||
),
|
),
|
||||||
"",
|
"",
|
||||||
@@ -370,7 +370,7 @@ def _get_job_counts(job):
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
Markup(
|
Markup(
|
||||||
f"""pending--fdsjfisodj<span class="usa-sr-only">
|
f"""pending notifications_sending<span class="usa-sr-only">
|
||||||
{message_count_noun(job.notifications_sending, job_type)}</span>"""
|
{message_count_noun(job.notifications_sending, job_type)}</span>"""
|
||||||
),
|
),
|
||||||
"pending",
|
"pending",
|
||||||
|
|||||||
@@ -25,8 +25,13 @@
|
|||||||
<h2 class="font-body-2xl line-height-sans-2 margin-top-0">{{ current_service.name }} Dashboard</h2>
|
<h2 class="font-body-2xl line-height-sans-2 margin-top-0">{{ current_service.name }} Dashboard</h2>
|
||||||
|
|
||||||
{{ ajax_block(partials, updates_url, 'inbox') }}
|
{{ ajax_block(partials, updates_url, 'inbox') }}
|
||||||
{{ ajax_block(partials, updates_url, 'activity') }}
|
|
||||||
|
|
||||||
|
<div id="totalMessageChartContainer" data-sms-sent="{{ sms_sent }}" data-sms-allowance-remaining="{{ sms_allowance_remaining }}">
|
||||||
|
<h2 id="chartTitle">Total messages</h2>
|
||||||
|
<svg id="totalMessageChart"></svg>
|
||||||
|
<div id="message"></div>
|
||||||
|
</div>
|
||||||
|
<div id="totalMessageTable" class="margin-0"></div>
|
||||||
|
|
||||||
<h2 class="line-height-sans-2 margin-bottom-0 margin-top-4">Recent activity</h2>
|
<h2 class="line-height-sans-2 margin-bottom-0 margin-top-4">Recent activity</h2>
|
||||||
<div id="activityChartContainer">
|
<div id="activityChartContainer">
|
||||||
|
|||||||
Reference in New Issue
Block a user