diff --git a/ckanext/api_tracking/templates/dashboard/dataset-unique-views.html b/ckanext/api_tracking/templates/dashboard/dataset-unique-views.html index a05764a..bea8b0b 100644 --- a/ckanext/api_tracking/templates/dashboard/dataset-unique-views.html +++ b/ckanext/api_tracking/templates/dashboard/dataset-unique-views.html @@ -11,13 +11,13 @@

{{ _('Most Viewed Datasets') }}

in the last year, month, or week. If a user visits a dataset page multiple times in a day, week, month or year, it will be counted as one unique visit.

-

Last year

+

Last week

- {% for row in dataset_views_365 %} + {% for row in dataset_views_7 %}
{{ _("Dataset") }}{{ _("Unique visits") }}
@@ -53,13 +53,13 @@

Last month

-

Last week

+

Last year

- {% for row in dataset_views_7 %} + {% for row in dataset_views_365 %}
{{ _("Dataset") }}{{ _("Unique visits") }}
diff --git a/ckanext/api_tracking/templates/dashboard/dataset-views.html b/ckanext/api_tracking/templates/dashboard/dataset-views.html index 677e0f4..01c9eea 100644 --- a/ckanext/api_tracking/templates/dashboard/dataset-views.html +++ b/ckanext/api_tracking/templates/dashboard/dataset-views.html @@ -11,13 +11,13 @@

{{ _('Most Viewed Datasets') }}

If a user visits a dataset page multiple times in a day, it will be counted as one visit. If the same user visits the dataset page tomorrow, it will be counted as another (the second) visit.

-

Last year

+

Last week

- {% for row in dataset_views_365 %} + {% for row in dataset_views_7 %}
{{ _("Dataset") }}{{ _("Daily unique visits") }}
@@ -53,13 +53,13 @@

Last month

-

Last week

+

Last year

- {% for row in dataset_views_7 %} + {% for row in dataset_views_365 %}
{{ _("Dataset") }}{{ _("Daily unique visits") }}
diff --git a/ckanext/api_tracking/templates/dashboard/resource-downloads.html b/ckanext/api_tracking/templates/dashboard/resource-downloads.html index 0f0ef16..7e70610 100644 --- a/ckanext/api_tracking/templates/dashboard/resource-downloads.html +++ b/ckanext/api_tracking/templates/dashboard/resource-downloads.html @@ -6,13 +6,13 @@

{{ _('Resource Downloads') }}

Unique visits

-

Last year

+

Last week

- {% for row in resource_downloads_365 %} + {% for row in resource_downloads_7 %}
{{ _("Resource") }}{{ _("Downloads") }}
{{ row.title }} @@ -44,13 +44,13 @@

Last month

-

Last week

+

Last year

- {% for row in resource_downloads_7 %} + {% for row in resource_downloads_365 %}
{{ _("Resource") }}{{ _("Downloads") }}
{{ row.title }}