--- a/ckanext/dga_stats/templates/ckanext/stats/index.html
+++ b/ckanext/dga_stats/templates/ckanext/stats/index.html
@@ -163,7 +163,7 @@
{{ _('Number of datasets') }} |
-
+
{% for group, num_packages in c.largest_groups %}
{{ h.link_to(group.title or group.name, h.url_for(controller='group', action='read', id=group.name)) }} |
@@ -173,30 +173,7 @@
{% else %}
- {{ _('No groups') }}
- {% endif %}
-
-
- {{ _('Largest Groups') }}
- {% if c.largest_groups %}
-
-
-
- {{ _('Group') }} |
- {{ _('Number of datasets') }} |
-
-
-
- {% for group, num_packages in c.largest_groups %}
-
- {{ h.link_to(group.title or group.name, h.url_for(controller='group', action='read', id=group.name)) }} |
- {{ num_packages }} |
-
- {% endfor %}
-
-
- {% else %}
- {{ _('No groups') }}
+ {{ _('No groups') }}
{% endif %}
@@ -239,6 +216,36 @@
+
+ {{ _('Datasets by Organization') }}
+ {% if c.by_org %}
+
+
+
+ {{ _('Group') }} |
+ {{ _('Public/Archived') }} |
+ {{ _('Number of datasets') }} |
+
+
+
+ {% for group,private, num_packages in c.by_org %}
+
+ {{ h.link_to(group.title or group.name, h.url_for(controller='organization', action='read', id=group.name)) }} |
+ {% if private == True %}
+ Archived |
+ {% else %}
+ Public |
+ {% endif %}
+ {{ num_packages }} |
+
+ {% endfor %}
+
+
+ {% else %}
+ {{ _('No groups') }}
+ {% endif %}
+
+
{% endblock %}
@@ -251,11 +258,11 @@
{{ _('Site Activity Log') }}
{{ _('Total Number of Datasets') }}
{{ _('Dataset Revisions per Week') }}
- {{ _('Top Rated Datasets') }}
+
{{ _('Most Edited Datasets') }}
- {{ _('Largest Groups') }}
{{ _('Top Tags') }}
{{ _('Users Owning Most Datasets') }}
+ {{ _('Datasets by Organization') }}