{% extends "withnav_template.html" %} {% 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 %} {{ banner( """
  1. Add a template
  2. Send yourself a text message
""".format( url_for(".add_service_template", service_id=service_id, template_type="sms"), url_for(".choose_template", service_id=service_id, template_type="sms") )|safe, subhead='Get started', type="tip" )}} {% elif not jobs %} {{ banner( """ Send yourself a text message """.format( url_for(".choose_template", service_id=service_id, template_type="sms") )|safe, subhead='Next step', type="tip" )}} {% 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 %} {% endif %} {% endif %} {% endblock %}