diff --git a/app/templates/views/dashboard/activity-chart.html b/app/templates/views/dashboard/activity-chart.html
new file mode 100644
index 000000000..b65a7c786
--- /dev/null
+++ b/app/templates/views/dashboard/activity-chart.html
@@ -0,0 +1,19 @@
+
Recent activity
+
diff --git a/app/templates/views/dashboard/activity-table.html b/app/templates/views/dashboard/activity-table.html
new file mode 100644
index 000000000..cbb7e0c87
--- /dev/null
+++ b/app/templates/views/dashboard/activity-table.html
@@ -0,0 +1,56 @@
+
+
+
Service activity
+
+
+ Table showing the sent jobs for {{current_service.name}}
+
+
+
+ | Job ID# |
+ Template |
+ Job status |
+ Sender
+ |
+ # of Recipients |
+
+
+
+ {% if jobs %}
+ {% for job in jobs %}
+ {% set notification = job.notifications[0] %}
+
+ |
+
+ {{ job.id[:8] if job.id else 'Manually entered number' }}
+
+ |
+ {{ job.template_name }} |
+
+ {% if job.scheduled_for and not job.processing_finished %}
+ Scheduled for
+ {{ job.scheduled_for|format_datetime_table }}
+ {% else %}
+ {% if job.processing_finished %}
+ Sent on {{job.processing_finished|format_datetime_table}}
+ {% elif job.processing_started %}
+ Sending since {{job.processing_started|format_datetime_table}}
+ {% else %}
+ Pending since {{job.created_at|format_datetime_table}}
+ {% endif %}
+ {% endif %}
+ |
+ {{ job.created_by.name }} |
+ {{ job.notification_count }} |
+
+ {% endfor %}
+ {% else %}
+
+ | No batched job messages found (messages are
+ kept for {{ service_data_retention_days }} days). |
+
+ {% endif %}
+
+
+
+
diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html
index cd2167dcf..92518ed9c 100644
--- a/app/templates/views/dashboard/dashboard.html
+++ b/app/templates/views/dashboard/dashboard.html
@@ -33,83 +33,14 @@
- Recent activity
-
+ {% include 'views/dashboard/activity-chart.html' %}
+
+ {% include 'views/dashboard/activity-table.html' %}
+
{% if current_user.has_permissions('manage_service') %}{% endif %}
-
-
-
Service activity
-
-
- Table showing the sent jobs for {{current_service.name}}
-
-
-
- | Job ID# |
- Template |
- Job status |
- Sender |
- # of Recipients |
-
-
-
- {% if jobs %}
- {% for job in jobs %}
- {% set notification = job.notifications[0] %}
-
- |
-
- {{ job.id[:8] if job.id else 'Manually entered number' }}
-
- |
- {{ job.template_name }} |
-
- {% if job.scheduled_for and not job.processing_finished %}
- Scheduled for
- {{ job.scheduled_for|format_datetime_table }}
- {% else %}
- {% if job.processing_finished %}
- Sent on {{job.processing_finished|format_datetime_table}}
- {% elif job.processing_started %}
- Sending since {{job.processing_started|format_datetime_table}}
- {% else %}
- Pending since {{job.created_at|format_datetime_table}}
- {% endif %}
- {% endif %}
- |
- {{ job.created_by.name }} |
- {{ job.notification_count }} |
-
- {% endfor %}
- {% else %}
-
- | No batched job messages found (messages are kept for {{ service_data_retention_days }} days). |
-
- {% endif %}
-
-
-
-
{{ ajax_block(partials, updates_url, 'template-statistics') }}