--- 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') }}

@@ -163,7 +214,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,33 +224,10 @@ {% else %} -

{{ _('No groups') }}

- {% 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 %} -
- +

{{ _('No groups') }}

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

{{ _('Top Tags') }}

@@ -219,7 +247,6 @@
-

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

@@ -239,6 +266,38 @@
+{% endif %} +
+

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

+ {% if c.by_org %} + + + + + + + + + + {% for group,private, num_packages in c.by_org %} + {% if private == False or h.check_access('sysadmin') %} + + + {% if private == True %} + + {% else %} + + {% endif %} + + + {% endif %} + {% endfor %} + +
{{ _('Group') }}{{ _('Public/Archived') }}{{ _('Number of datasets') }}
{{ h.link_to(group.title or group.name, h.url_for(controller='organization', action='read', id=group.name)) }}ArchivedPublic{{ num_packages }}
+ {% else %} +

{{ _('No groups') }}

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

{{ _('Statistics Menu') }}