--- a/ckanext/dga_stats/templates/ckanext/stats/index.html
+++ b/ckanext/dga_stats/templates/ckanext/stats/index.html
@@ -185,7 +185,7 @@
- {{ _('Group') }} |
+ {{ _('Organisation') }} |
{{ _('Public/Archived') }} |
{{ _('Number of datasets') }} |
@@ -210,6 +210,58 @@
{{ _('No groups') }}
{% endif %}
+
+ {{ _('Resources by Organization') }}
+ {% if c.res_by_org %}
+
+
+
+ {{ _('Organisation') }} |
+ {{ _('Tabular') }} |
+ {{ _('Spatial') }} |
+ {{ _('Other') }} |
+ {{ _('Total') }} |
+
+
+
+ {% for group,t,s,o,tot in c.res_by_org %}
+
+ {{ h.link_to(group.title or group.name, h.url_for(controller='organization', action='read', id=group.name)) }} |
+ {{ t }} |
+ {{ s }} |
+ {{ o }} |
+ {{ tot }} |
+
+ {% endfor %}
+
+
+ {% else %}
+ {{ _('No groups') }}
+ {% endif %}
+
+
+ {{ _('Most Active Organisations') }}
+ {% if c.top_active_orgs %}
+
+
+
+ {{ _('Organisation') }} |
+ {{ _('Number of datasets updated recently') }} |
+
+
+
+ {% for group, num_packages in c.top_active_orgs %}
+
+ {{ h.link_to(group.title or group.name, h.url_for(controller='organization', action='read', id=group.name)) }} |
+ {{ num_packages }} |
+
+ {% endfor %}
+
+
+ {% else %}
+ {{ _('No groups') }}
+ {% endif %}
+
{{ _('Summary') }}
{% if c.summary_stats %}
@@ -222,10 +274,12 @@
{% for measure,value in c.summary_stats %}
+ {% if 'Archived' not in measure or h.check_access('sysadmin') %}
{{measure}} |
{{ value }} |
+ {% endif %}
{% endfor %}
@@ -249,6 +303,9 @@
{{ _('Dataset Revisions per Week') }}
{{ _('Most Edited Datasets') }}
{{ _('Datasets by Organization') }}
+ {{ _('Resources by Organization') }}
+ {{ _('Most Active Organisations') }}
+ Site Analytics
{{ _('Summary') }}