--- 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,31 @@
{{ _('No groups') }}
{% endif %}
-{% if h.check_access('sysadmin') %}
+
+ {{ _('Recent Datasets') }}
+ {% if c.recent_datasets %}
+
+
+
+ {{ _('Date') }} |
+ {{ _('Dataset') }} |
+ {{ _('New/Modified') }} |
+
+
+
+ {% for date,package,newmodified in c.recent_datasets %}
+
+ {{ date }} |
+ {{ h.link_to(package.title or package.name, h.url_for(controller='package', action='read', id=package.name)) }} |
+ {{ newmodified }} |
+
+ {% endfor %}
+
+
+ {% else %}
+ {{ _('No groups') }}
+ {% endif %}
+
{{ _('User Access List') }}
{% if c.user_access_list %}
@@ -202,7 +227,7 @@
{{ _('No groups') }}
{% endif %}
-
+{% if False %}
-
{{ _('Users Owning Most Datasets') }}
+{% endif %}
{{ _('Datasets by Organization') }}
{% if c.by_org %}
@@ -255,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 %}
@@ -264,14 +290,14 @@
{% endif %}
{{ num_packages }} |
- {% endfor %}
-
-
- {% else %}
- {{ _('No groups') }}
- {% endif %}
-
-
+ {% endif %}
+ {% endfor %}
+
+
+ {% else %}
+ {{ _('No groups') }}
+ {% endif %}
+
{% endblock %}
@@ -281,17 +307,18 @@