mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
When a table is showing the contents of a CSV file, it should look something like a spreadsheet. The minimally skeuomorphic way to do this is by adding row numbers. This commit doesn’t - make the row numbers monospace (it’s barely noticeable and doesn’t reflect what actual spreadsheets do) - make the first column heading ‘Row’ (again, doesn’t reflect how actual spreadsheets work, and takes up more valuable space)
23 lines
581 B
HTML
23 lines
581 B
HTML
{% from "components/table.html" import list_table, field, right_aligned_field_heading %}
|
|
|
|
{% call(item, row_number) list_table(
|
|
notifications,
|
|
caption=uploaded_file_name,
|
|
caption_visible=False,
|
|
empty_message="No messages to show yet",
|
|
field_headings=[
|
|
'Recipient',
|
|
right_aligned_field_heading('Status')
|
|
]
|
|
) %}
|
|
{% call field() %}
|
|
{{ item.to }}
|
|
{% endcall %}
|
|
{% call field(
|
|
align='right',
|
|
status='error' if item.status == 'Failed' else 'default'
|
|
) %}
|
|
{{ item.status|title }} at {{ item.sent_at|format_time }}
|
|
{% endcall %}
|
|
{% endcall %}
|