From 185e45a57898c459e179fd492b19d80c98296577 Mon Sep 17 00:00:00 2001 From: Andres Vazquez Date: Mon, 2 Dec 2024 09:54:50 -0300 Subject: [PATCH] Move to week - month - year (#12) --- .../templates/dashboard/dataset-unique-views.html | 8 ++++---- .../api_tracking/templates/dashboard/dataset-views.html | 8 ++++---- .../templates/dashboard/resource-downloads.html | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) 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 }}