Files
notifications-admin/app/templates/partials/jobs/notifications.html
T

62 lines
1.7 KiB
HTML
Raw Normal View History

{% from "components/table.html" import list_table, field, right_aligned_field_heading, date_field, row_heading %}
2016-03-02 17:36:20 +00:00
2016-06-28 09:21:46 +01:00
{% if notifications %}
<div class="dashboard-table">
{% endif %}
{% if not help %}
{% if percentage_complete < 100 %}
2016-08-02 16:43:47 +01:00
<p class="bottom-gutter-1-2 hint">
Report is {{ "{:.0f}%".format(percentage_complete) }} complete…
</p>
{% elif notifications %}
2016-08-02 16:43:47 +01:00
<p class="bottom-gutter-1-2">
<a href="{{ download_link }}" download="download" class="heading-small">Download this report</a>
&emsp;
<span id="time-left">{{ time_left }}</span>
</p>
{% endif %}
{% endif %}
2016-06-09 11:26:45 +01:00
{% call(item, row_number) list_table(
notifications,
caption=uploaded_file_name,
caption_visible=False,
2016-06-08 16:34:26 +01:00
empty_message="No messages to show",
2016-06-09 11:26:45 +01:00
field_headings=[
'Recipient',
'Time',
'Status'
],
field_headings_visible=False
) %}
{% call row_heading() %}
{{ item.to }}
2016-04-27 09:28:42 +01:00
{% endcall %}
2016-06-09 11:26:45 +01:00
{{ date_field(
(item.updated_at or item.created_at)|format_datetime_short
) }}
{% call field(
align='right',
status=item.status|format_notification_status_as_field_status
) %}
{% if item.status|format_notification_status_as_url %}
<a href="{{ item.status|format_notification_status_as_url }}">
{% endif %}
2016-06-09 11:26:45 +01:00
{{ item.status|format_notification_status(item.template.template_type) }}
{% if item.status|format_notification_status_as_url %}
</a>
{% endif %}
2016-06-09 11:26:45 +01:00
{% endcall %}
{% endcall %}
2016-06-28 09:21:46 +01:00
{% if more_than_one_page %}
<p class="table-show-more-link">
Only showing the first 50 rows
</p>
{% endif %}
2016-06-28 09:21:46 +01:00
{% if notifications %}
</div>
{% endif %}