{% extends "withnav_template.html" %} {% from "components/table.html" import list_table, field, text_field, link_field, right_aligned_field_heading, hidden_field_heading, row_heading, notification_status_field, notification_carrier_field, notification_carrier_message_field %} {% from "components/ajax-block.html" import ajax_block %} {% block service_page_title %} Dashboard {% endblock %} {% block maincolumn_content %}

Dashboard

{% if current_user.has_permissions('manage_templates') and not current_service.all_templates %} {% include 'views/dashboard/write-first-messages.html' %} {% endif %} {{ ajax_block(partials, updates_url, 'upcoming') }}

Messages sent

In the last seven days

{{ ajax_block(partials, updates_url, 'inbox') }} {{ ajax_block(partials, updates_url, 'totals') }} {{ ajax_block(partials, updates_url, 'template-statistics') }}

Batched Jobs

{% call(item, row_number) list_table( notifications, caption="Batched Jobs", caption_visible=False, border_visible=True, empty_message='No batched job messages found  (messages are kept for {} days)'.format(service_data_retention_days)|safe, field_headings=['Template Name','Date/Time', 'Download (CSV) Report'], field_headings_visible=False ) %} {% if item.job.original_file_name and item.job.id %} {% call row_heading() %} {{ item.job.original_file_name|replace('.csv', '') if item.job.id else '' }} {% endcall %} {% call row_heading() %} {{ item.status|format_notification_status_as_time( item.created_at|format_datetime_short, (item.updated_at or item.created_at)|format_datetime_short) }} {% endcall %} {% call row_heading() %} {% set availability = download_availability|selectattr('job_id', 'equalto', item.job.id)|first %} {% if availability and availability.time_left != "Data no longer available" %} {{ "Download" if item.job.original_file_name else '' }} - {{ availability.time_left }} {% elif availability %} {{ availability.time_left }} {% endif %} {% endcall %} {% endif %} {% endcall %}
{% if show_pagination %} {{ previous_next_navigation(prev_page, next_page) }} {% elif next_page %} {% endif %}

Usage

Daily

Across all services

Daily
Usage Remaining
{{ global_message_limit - daily_global_messages_remaining }} {{ daily_global_messages_remaining }}
{% if current_user.has_permissions('manage_service') %}

{{ ajax_block(partials, updates_url, 'usage') }} See all usage {% endif %}
{% endblock %}