--- 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 %} @@ -54,7 +55,57 @@

{{ _('No groups') }}

{% endif %}
- +
+

{{ _('Recent Datasets') }}

+ {% if c.recent_datasets %} + + + + + + + + + + {% for date,package,newmodified in c.recent_datasets %} + + + + + + {% endfor %} + +
{{ _('Date') }}{{ _('Dataset') }}{{ _('New/Modified') }}
{{ date }}{{ h.link_to(package.title or package.name, h.url_for(controller='package', action='read', id=package.name)) }}{{ newmodified }}
+ {% else %} +

{{ _('No groups') }}

+ {% endif %} +
+
+

{{ _('User Access List') }}

+ {% if c.user_access_list %} + + + + + + + + + + {% for username,sysadmin,role in c.user_access_list %} + + + + + + {% endfor %} + +
{{ _('Username') }}{{ _('Sysadmin') }}{{ _('Organisational Role') }}
{{ username }}{{ sysadmin }}{{ role }}
+ {% else %} +

{{ _('No groups') }}

+ {% endif %} +
+{% endif %}

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

@@ -176,7 +227,7 @@

{{ _('No groups') }}

{% endif %}
- +{% if False %}

{{ _('Top Tags') }}

@@ -196,7 +247,6 @@
-

{{ _('Users Owning Most Datasets') }}

@@ -216,6 +266,7 @@
+{% endif %}

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

{% if c.by_org %} @@ -229,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 %} @@ -238,14 +290,14 @@ {% endif %} {{ num_packages }} - {% endfor %} - - - {% else %} -

{{ _('No groups') }}

- {% endif %} -
- + {% endif %} + {% endfor %} + + + {% else %} +

{{ _('No groups') }}

+ {% endif %} + {% endblock %} @@ -254,15 +306,19 @@

{{ _('Statistics Menu') }}