mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-25 01:41:19 -04:00
Splitting the dashboard into multiple sections was confusing, and people sometimes mistook the headings as labels, especially when a section was empty. It just wasn’t clear what the hierarchy of the page was. This commit combines the current and pending broadcasts into one list on the dashboard. Previous broadcasts have already moved to their own page.
28 lines
879 B
HTML
28 lines
879 B
HTML
{% from 'components/ajax-block.html' import ajax_block %}
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
{% block service_page_title %}
|
|
Current alerts
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
{% if current_user.has_permissions('manage_templates') and not current_service.all_templates %}
|
|
<nav class="govuk-!-margin-top-2 govuk-!-margin-bottom-6">
|
|
<a class="govuk-link govuk-link--no-visited-state pill-separate-item govuk-!-padding-top-4 govuk-!-padding-bottom-4 govuk-!-font-weight-bold" href="{{ url_for('.choose_template', service_id=current_service.id) }}">
|
|
Start by creating a template
|
|
</a>
|
|
</nav>
|
|
{% endif %}
|
|
|
|
<h1 class="heading-medium govuk-!-margin-bottom-2">Current alerts</h1>
|
|
|
|
{{ ajax_block(
|
|
partials,
|
|
url_for('.broadcast_dashboard_updates', service_id=current_service.id),
|
|
'current_broadcasts'
|
|
) }}
|
|
|
|
{% endblock %}
|