--- a/ckanext/dga_stats/templates/ckanext/stats/index.html
+++ b/ckanext/dga_stats/templates/ckanext/stats/index.html
@@ -29,6 +29,7 @@
{{ _('No groups') }}
{% endif %}
+{% if h.check_access('sysadmin') %}
{{ _('Site Activity Log') }}
{% if c.activity_counts %}
@@ -79,7 +80,6 @@
{{ _('No groups') }}
{% endif %}
-{% if h.check_access('sysadmin') %}
{{ _('User Access List') }}
{% if c.user_access_list %}
@@ -227,7 +227,7 @@
{{ _('No groups') }}
{% endif %}
-
+{% if False %}
-
{{ _('Users Owning Most Datasets') }}
+{% endif %}
{{ _('Datasets by Organization') }}
{% if c.by_org %}
@@ -280,6 +280,7 @@
{% for group,private, num_packages in c.by_org %}
+ {% if private == False or h.check_access('sysadmin') %}
{{ h.link_to(group.title or group.name, h.url_for(controller='organization', action='read', id=group.name)) }} |
{% if private == True %}
@@ -289,14 +290,14 @@
{% endif %}
{{ num_packages }} |
- {% endfor %}
-
-
- {% else %}
- {{ _('No groups') }}
- {% endif %}
-
-
+ {% endif %}
+ {% endfor %}
+
+
+ {% else %}
+ {{ _('No groups') }}
+ {% endif %}
+
{% endblock %}
@@ -306,18 +307,18 @@