{% extends "withnav_template.html" %} {% from "components/banner.html" import banner_wrapper %} {% from "components/table.html" import list_table, field, right_aligned_field_heading %} {% from "components/big-number.html" import big_number %} {% block page_title %} {{ session.get('service_name', 'Dashboard') }} – GOV.UK Notify {% endblock %} {% block maincolumn_content %} {% if not template_count and not jobs %} {% call banner_wrapper(subhead='Get started', type="tip") %}
    {% if current_user.has_permissions(['manage_templates']) %}
  1. Add a template
  2. {% endif %} {% if current_user.has_permissions(['send_texts', 'send_emails', 'send_letters']) %}
  3. Send yourself a text message
  4. {% endif %}
{% endcall %} {% elif not jobs %} {% call banner_wrapper(subhead='Next step', type="tip") %} {% if current_user.has_permissions(['send_texts', 'send_emails', 'send_letters']) %} Send yourself a text message {% endif %} {% endcall %} {% else %} {% call(item) list_table( jobs, caption="Recent text messages", empty_message='You haven’t sent any text messages yet', field_headings=['Job', 'Created', right_aligned_field_heading('completion')] ) %} {% call field() %} {{ item.original_file_name }} {% endcall %} {% call field() %} {{ item.created_at|format_datetime }} {% endcall %} {% call field(align='right') %} {{ (item.notifications_sent / item.notification_count * 100)|round|int }}% {% endcall %} {% endcall %} {% if more_jobs_to_show %} {% if current_user.has_permissions(['send_texts', 'send_emails', 'send_letters']) %} {% endif %} {% endif %} {% endif %} {% endblock %}