{% extends "withnav_template.html" %}
{% from "components/ajax-block.html" import ajax_block %}
{% from "components/message-count-label.html" import message_count_label, recipient_count_label %}

{% block service_page_title %}
  {{ message_count_label(99, message_type, suffix='') | capitalize }}
{% endblock %}

{% block maincolumn_content %}

  <h1 class="heading-large">
    {{ message_count_label(99, message_type, suffix='') | capitalize }}
  </h1>

  {{ ajax_block(
    partials,
    url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status),
    'counts'
  ) }}

  {{ ajax_block(
    partials,
    url_for('.get_notifications_as_json', service_id=current_service.id, message_type=message_type, status=status, page=page),
    'notifications'
  ) }}

{% endblock %}
