--- a/ckanext/dga_stats/templates/ckanext/stats/index.html +++ b/ckanext/dga_stats/templates/ckanext/stats/index.html @@ -185,7 +185,7 @@ - + @@ -210,6 +210,58 @@

{{ _('No groups') }}

{% endif %} +
+

{{ _('Resources by Organization') }}

+ {% if c.res_by_org %} +
{{ _('Group') }}{{ _('Organisation') }} {{ _('Public/Archived') }} {{ _('Number of datasets') }}
+ + + + + + + + + + + {% for group,t,s,o,tot in c.res_by_org %} + + + + + + + + {% endfor %} + +
{{ _('Organisation') }}{{ _('Tabular') }}{{ _('Spatial') }}{{ _('Other') }}{{ _('Total') }}
{{ h.link_to(group.title or group.name, h.url_for(controller='organization', action='read', id=group.name)) }}{{ t }}{{ s }}{{ o }}{{ tot }}
+ {% else %} +

{{ _('No groups') }}

+ {% endif %} + +
+

{{ _('Most Active Organisations') }}

+ {% if c.top_active_orgs %} + + + + + + + + + {% for group, num_packages in c.top_active_orgs %} + + + + + {% endfor %} + +
{{ _('Organisation') }}{{ _('Number of datasets updated recently') }}
{{ h.link_to(group.title or group.name, h.url_for(controller='organization', action='read', id=group.name)) }}{{ num_packages }}
+ {% 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,8 @@ + +