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

53 lines
1.2 KiB
HTML
Raw Normal View History

2015-12-14 16:37:15 +00:00
{% extends "withnav_template.html" %}
2016-01-07 12:29:56 +00:00
{% from "components/table.html" import list_table, field %}
2015-12-18 16:36:24 +00:00
{% from "components/big-number.html" import big_number %}
{% block page_title %}
2015-12-18 10:26:56 +00:00
GOV.UK Notify | Dashboard
{% endblock %}
2015-12-14 16:37:15 +00:00
{% block maincolumn_content %}
2015-12-18 16:36:24 +00:00
<h1 class="heading-xlarge">Service name</h1>
<ul class="grid-row job-totals">
<li class="column-half">
{{ big_number(
free_text_messages_remaining,
'free text messages remaining'
)}}
</li>
<li class="column-half">
{{ big_number(
'£' + spent_this_month,
'spent this month'
)}}
</li>
</ul>
2016-01-07 12:29:56 +00:00
{% call(item) list_table(
2015-12-18 10:26:56 +00:00
jobs[:3],
2015-12-18 16:36:24 +00:00
caption="Recent text messages",
2016-01-07 12:29:56 +00:00
empty_message="No recent text messages",
2015-12-18 10:26:56 +00:00
field_headings=['Job', 'File', 'Time', 'Status']
) %}
{% call field() %}
<a href="{{ url_for('.showjob') }}">{{ item.file }}</a>
{% endcall %}
{% call field() %}
<a href="{{ url_for('.showjob') }}">{{ item.job }}</a>
{% endcall %}
{% call field() %}
{{ item.time }}
{% endcall %}
{% call field() %}
{{ item.status }}
{% endcall %}
{% endcall %}
<p>
<a href={{ url_for('.showjobs') }}>See all notifications activity</a>
</p>
2015-12-14 16:37:15 +00:00
{% endblock %}