mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-13 04:30:32 -04:00
draft dash
This commit is contained in:
@@ -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<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>"""
|
||||
),
|
||||
"",
|
||||
@@ -370,7 +370,7 @@ def _get_job_counts(job):
|
||||
],
|
||||
[
|
||||
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>"""
|
||||
),
|
||||
"pending",
|
||||
|
||||
@@ -25,8 +25,13 @@
|
||||
<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, '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>
|
||||
<div id="activityChartContainer">
|
||||
|
||||
Reference in New Issue
Block a user