Put same info in both tables of notifications

We have tables listing notifications on:
- the job page
- the ‘activity’ page

Previously that had subtly different information, in a different order.
This commit makes them exactly the same.
This commit is contained in:
Chris Hill-Scott
2016-06-09 10:25:52 +01:00
parent c31762265c
commit 2e8e650733
3 changed files with 15 additions and 7 deletions

View File

@@ -17,6 +17,7 @@
.table-row {
th {
width: 52.5%;
font-weight: normal;
a {
max-height: 1.25em;

View File

@@ -1,4 +1,4 @@
{% from "components/table.html" import list_table, field, right_aligned_field_heading %}
{% from "components/table.html" import list_table, field, right_aligned_field_heading, date_field, row_heading %}
<div
{% if not finished %}
@@ -18,17 +18,22 @@
empty_message="No messages to show yet",
field_headings=[
'Recipient',
'Time',
right_aligned_field_heading('Status')
]
],
field_headings_visible=False
) %}
{% call field() %}
{% call row_heading() %}
{{ item.to }}
{% endcall %}
{{ date_field(
(item.updated_at or item.created_at)|format_datetime_short
) }}
{% call field(
align='right',
status='error' if item.status == 'Failed' else 'default'
status=item.status|format_notification_status_as_field_status
) %}
{{ item.status|format_notification_status }} at {{ (item.updated_at or item.created_at)|format_time }}
{{ item.status|format_notification_status(item.template.template_type) }}
{% endcall %}
{% endcall %}
{% else %}