Add big numbers to dashboard

A suggestion of what high-level information users might need on the dashboard
page.
This commit is contained in:
Chris Hill-Scott
2015-12-18 16:36:24 +00:00
parent 96c3291600
commit cad5698754
2 changed files with 22 additions and 3 deletions

View File

@@ -8,5 +8,8 @@ from ._jobs import jobs
@main.route("/dashboard")
def dashboard():
return render_template(
'views/dashboard.html', jobs=jobs
'views/dashboard.html',
jobs=jobs,
free_text_messages_remaining=560,
spent_this_month='0.00'
)

View File

@@ -1,5 +1,6 @@
{% extends "withnav_template.html" %}
{% from "components/table.html" import table, field %}
{% from "components/big-number.html" import big_number %}
{% block page_title %}
GOV.UK Notify | Dashboard
@@ -7,11 +8,26 @@
{% block maincolumn_content %}
<h1 class="heading-xlarge">Dashboard</h1>
<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>
{% call(item) table(
jobs[:3],
caption="Recent activity",
caption="Recent text messages",
field_headings=['Job', 'File', 'Time', 'Status']
) %}
{% call field() %}