{% from "components/big-number.html" import big_number_with_status %}

In the last 7 days

{{ big_number_with_status( statistics.get('emails_delivered', 0), 'email' if statistics.get('emails_delivered') == 1 else 'emails', statistics.get('emails_failed'), statistics.get('emails_failure_rate', 0.0), statistics.get('emails_failure_rate', 0)|float > 3, failure_link=url_for(".view_notifications", service_id=current_service.id, template_type='email', status='failed') ) }}
{{ big_number_with_status( statistics.get('sms_requested', 0), 'text message' if statistics.get('sms_requested') == 1 else 'text messages', statistics.get('sms_failed'), statistics.get('sms_failure_rate', 0.0), statistics.get('sms_failure_rate', 0)|float > 3, failure_link=url_for(".view_notifications", service_id=current_service.id, template_type='sms', status='failed') ) }}
{% with period = "in the last 7 days" %} {% include 'views/dashboard/template-statistics.html' %} {% endwith %}