--- a/ckanext/dga_stats/templates/ckanext/stats/index.html +++ b/ckanext/dga_stats/templates/ckanext/stats/index.html @@ -54,7 +54,58 @@

{{ _('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 %} +
+{% if h.check_access('sysadmin') %} +
+

{{ _('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,30 +224,7 @@ {% 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') }}

+

{{ _('No groups') }}

{% endif %}
@@ -239,6 +267,36 @@ +
+

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

+ {% if c.by_org %} + + + + + + + + + + {% for group,private, num_packages in c.by_org %} + + + {% if private == True %} + + {% else %} + + {% 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 +305,19 @@

{{ _('Statistics Menu') }}