mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-05 05:50:41 -04:00
The `send_messages` permission has been deprecated for use with broadcast services, so we can drop support for it in the code. We were supporting both the old permissions and new permissions (`create_broadcasts` and `approve_broadcasts`) while we switched people over. This removes `send_messages` from the `user_has_permissions` decorator around the broadcast routes and from the page to view a broadcast and broadcast dashboards. We can now git rid of a lot of the parameterization that was temporarily added to the tests.
28 lines
762 B
HTML
28 lines
762 B
HTML
{% from 'components/ajax-block.html' import ajax_block %}
|
|
{% from "components/button/macro.njk" import govukButton %}
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
{% block service_page_title %}
|
|
{{ page_title }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-medium">{{ page_title }}</h1>
|
|
|
|
{% include('views/broadcast/partials/dashboard-table.html') %}
|
|
|
|
{% if current_user.has_permissions('create_broadcasts', restrict_admin_usage=True) %}
|
|
<div class="js-stick-at-bottom-when-scrolling">
|
|
{{ govukButton({
|
|
"element": "a",
|
|
"text": "New alert",
|
|
"href": url_for('.new_broadcast', service_id=current_service.id),
|
|
"classes": "govuk-button--secondary"
|
|
}) }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|