Files
notifications-admin/app/templates/views/dashboard/_upcoming.html
T

43 lines
1.4 KiB
HTML
Raw Normal View History

2016-08-09 10:39:57 +01:00
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %}
{% from "components/big-number.html" import big_number %}
{% from "components/show-more.html" import show_more %}
2016-09-01 11:07:00 +01:00
<div class="ajax-block-container">
{% if scheduled_jobs %}
<div class='dashboard-table'>
2018-07-30 17:40:32 +01:00
{% if not hide_heading %}
2019-04-23 10:03:28 +01:00
<h2 class="heading-medium heading-upcoming-jobs">
2018-07-30 17:40:32 +01:00
In the next few days
</h2>
{% endif %}
2016-09-01 11:07:00 +01:00
{% call(item, row_number) list_table(
scheduled_jobs,
2018-07-30 17:40:32 +01:00
caption="In the next few days",
2016-09-01 11:07:00 +01:00
caption_visible=False,
empty_message='Nothing to see here',
field_headings=[
'File',
'Messages to be sent'
],
field_headings_visible=True
) %}
{% call row_heading() %}
<div class="file-list">
<a class="file-list-filename" href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>
<span class="file-list-hint">
Sending {{ item.scheduled_for|format_datetime_relative }}
2016-09-01 11:07:00 +01:00
</span>
</div>
{% endcall %}
{% call field() %}
{{ big_number(
item.notification_count,
smallest=True
) }}
{% endcall %}
2016-08-09 10:39:57 +01:00
{% endcall %}
2016-09-01 11:07:00 +01:00
{{ show_more() }}
</div>
{% endif %}
</div>