mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 09:13:58 -04:00
Merge pull request #477 from alphagov/all-time-greatest-templates
Show template usage for all time on it’s own page
This commit is contained in:
17
app/templates/views/dashboard/all-template-statistics.html
Normal file
17
app/templates/views/dashboard/all-template-statistics.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
|
||||
{% block page_title %}
|
||||
{{ current_service.name }} – GOV.UK Notify
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
<h1 class='heading-large'>
|
||||
Templates used this year
|
||||
</h1>
|
||||
<p>
|
||||
1 April 2016 to date
|
||||
</p>
|
||||
{% with period = "" %}
|
||||
{% include 'views/dashboard/template-statistics.html' %}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
@@ -3,8 +3,8 @@
|
||||
template_statistics,
|
||||
caption="By template",
|
||||
caption_visible=False,
|
||||
empty_message='You haven’t set up any templates yet',
|
||||
field_headings=['Template', hidden_field_heading('Type'), right_aligned_field_heading('Messages processed')]
|
||||
empty_message='You haven’t used any templates {}'.format(period),
|
||||
field_headings=['Template', hidden_field_heading('Type'), right_aligned_field_heading('Messages sent')]
|
||||
) %}
|
||||
{% call field() %}
|
||||
<a href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.template.id) }}">
|
||||
|
||||
@@ -25,5 +25,9 @@
|
||||
) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'views/dashboard/template-statistics.html' %}
|
||||
{% with period = "in the last 7 days" %}
|
||||
{% include 'views/dashboard/template-statistics.html' %}
|
||||
{% endwith %}
|
||||
<p class='table-show-more-link'>
|
||||
<a href="{{ url_for('.template_history', service_id=current_service.id) }}">See all templates used this year</a>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user