diff --git a/app/main/views/dashboard.py b/app/main/views/dashboard.py index d5d26f0a3..447a4b552 100644 --- a/app/main/views/dashboard.py +++ b/app/main/views/dashboard.py @@ -327,6 +327,12 @@ def aggregate_template_usage(template_statistics, sort_key="count"): "template_name": template_stats[0]["template_name"], "template_type": template_stats[0]["template_type"], "count": sum(s["count"] for s in template_stats), + "last_used": max(s["last_used"] for s in template_stats if s["last_used"]), + "created_by": template_stats[0]["created_by"], + "created_by_id": template_stats[0]["created_by_id"], + "status": template_stats[0]["status"], + "template_folder": template_stats[0]["template_folder"], + "template_folder_id": template_stats[0]["template_folder_id"], } ) diff --git a/app/templates/views/dashboard/dashboard.html b/app/templates/views/dashboard/dashboard.html index 114667f2d..a6b410105 100644 --- a/app/templates/views/dashboard/dashboard.html +++ b/app/templates/views/dashboard/dashboard.html @@ -52,9 +52,7 @@
- {% if current_user.has_permissions('manage_service') %}{% endif %} - {{ ajax_block(partials, updates_url, 'template-statistics') }}| + Template name + | ++ Folder + | ++ Last used + | ++ Created by + | ++ # Times used + | +
|---|---|---|---|---|
| + {{ item.template_name }} + + {{ 1|message_count_label(item.template_type, suffix='template')|capitalize }} + + | +{{ item.template_folder }} |
+ {{ item.last_used|format_datetime_table}} |
+ {{ item.created_by }} |
+ {{ item.count }} |
+