mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 00:48:25 -04:00
Fix spcing on empty table
This commit is contained in:
@@ -25,14 +25,15 @@
|
|||||||
{% macro list_table(items, caption='', empty_message='', field_headings=[], field_headings_visible=True, caption_visible=True) -%}
|
{% macro list_table(items, caption='', empty_message='', field_headings=[], field_headings_visible=True, caption_visible=True) -%}
|
||||||
|
|
||||||
{% set parent_caller = caller %}
|
{% set parent_caller = caller %}
|
||||||
{% call mapping_table(caption, field_headings, field_headings_visible, caption_visible) %}
|
{% if items %}
|
||||||
{% for item in items %}
|
{% call mapping_table(caption, field_headings, field_headings_visible, caption_visible) %}
|
||||||
{% call row() %}
|
{% for item in items %}
|
||||||
{{ parent_caller(item) }}
|
{% call row() %}
|
||||||
{% endcall %}
|
{{ parent_caller(item) }}
|
||||||
{% endfor %}
|
{% endcall %}
|
||||||
{%- endcall %}
|
{% endfor %}
|
||||||
{% if not items %}
|
{%- endcall %}
|
||||||
|
{% else %}
|
||||||
<p class="table-empty-message">
|
<p class="table-empty-message">
|
||||||
{{ empty_message }}
|
{{ empty_message }}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user