--- a/ckanext/dga_stats/templates/ckanext/stats/index.html +++ b/ckanext/dga_stats/templates/ckanext/stats/index.html @@ -6,6 +6,55 @@ {% block primary_content %}
+
+

{{ _('Summary') }}

+ {% if c.summary_stats %} + + + + + + + + + {% for measure,value in c.summary_stats %} + + + + + {% endfor %} + +
{{ _('Measure') }}{{ _('Value') }}
{{measure}}{{ value }}
+ {% else %} +

{{ _('No groups') }}

+ {% endif %} +
+
+

{{ _('Site Activity Log') }}

+ {% if c.activity_counts %} + + + + + + + + + + {% for month, type, count in c.activity_counts %} + + + + + + {% endfor %} + +
{{ _('Month') }}{{ _('Activity Type') }}{{ _('Count') }}
{{ month }}{{ type }}{{ count }}
+ {% else %} +

{{ _('No groups') }}

+ {% endif %} +
+

{{ _('Total number of Datasets') }}

@@ -104,6 +153,29 @@ {% endif %}
+
+

{{ _('Largest Groups') }}

+ {% if c.largest_groups %} + + + + + + + + + {% for group, num_packages in c.largest_groups %} + + + + + {% endfor %} + +
{{ _('Group') }}{{ _('Number of datasets') }}
{{ h.link_to(group.title or group.name, h.url_for(controller='group', action='read', id=group.name)) }}{{ num_packages }}
+ {% else %} +

{{ _('No groups') }}

+ {% endif %} +

{{ _('Largest Groups') }}

{% if c.largest_groups %} @@ -175,6 +247,8 @@

{{ _('Statistics Menu') }}