mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-28 22:30:44 -05:00
All paragraphs should have class="govuk-body", or be otherwise custom-styled. This commit adds some extra checks to our test fixture that looks for paragraphs that don’t have any styling. Our test coverage is pretty good, so this should check almost all pages, and prevent regressions. I’ve done this in such a way that it can be extended for other elements (e.g. links) in the future.
32 lines
840 B
HTML
32 lines
840 B
HTML
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, notification_status_field %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
<div class="ajax-block-container" aria-labelledby='pill-selected-item'>
|
|
<div class="dashboard-table bottom-gutter-3-2">
|
|
|
|
{% call(item, row_number) list_table(
|
|
[notification],
|
|
caption=None,
|
|
caption_visible=False,
|
|
empty_message=None,
|
|
field_headings=[
|
|
'Recipient',
|
|
'Status'
|
|
],
|
|
field_headings_visible=False
|
|
) %}
|
|
{% call row_heading() %}
|
|
<p class="govuk-body">{{ item.to }}</p>
|
|
{% endcall %}
|
|
{{ notification_status_field(item) }}
|
|
{% endcall %}
|
|
|
|
{% if more_than_one_page %}
|
|
<p class="table-show-more-link">
|
|
Only showing the first 50 rows
|
|
</p>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|