mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-23 08:49:46 -04:00
Make Jinja template generic
This will let us reuse the same code for displaying pages of previous and rejected alerts.
This commit is contained in:
@@ -53,6 +53,7 @@ def broadcast_dashboard_previous(service_id):
|
||||
'completed',
|
||||
'rejected',
|
||||
),
|
||||
page_title='Previous alerts',
|
||||
empty_message='You do not have any previous alerts',
|
||||
view_broadcast_endpoint='.view_previous_broadcast',
|
||||
)
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Previous alerts
|
||||
{{ page_title }}
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<h1 class="heading-medium">Previous alerts</h1>
|
||||
<h1 class="heading-medium">{{ page_title }}</h1>
|
||||
|
||||
{% include('views/broadcast/partials/dashboard-table.html') %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user