From f0ffcce9f814c0d1134ca927dc3ce896195785ad Mon Sep 17 00:00:00 2001 From: Alessio Fabrizio Date: Mon, 2 Dec 2024 16:19:37 +0100 Subject: [PATCH] add dataset_acquired html file --- .../templates/user/dashboard_acquired.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ckanext-d4science_theme/ckanext/d4science_theme/templates/user/dashboard_acquired.html diff --git a/ckanext-d4science_theme/ckanext/d4science_theme/templates/user/dashboard_acquired.html b/ckanext-d4science_theme/ckanext/d4science_theme/templates/user/dashboard_acquired.html new file mode 100644 index 0000000..a9fc325 --- /dev/null +++ b/ckanext-d4science_theme/ckanext/d4science_theme/templates/user/dashboard_acquired.html @@ -0,0 +1,19 @@ +{% extends "user/dashboard.html" %} + +{% block dashboard_activity_stream_context %}{% endblock %} + +{% block page_primary_action %} + {% link_for _('Acquire Dataset'), controller='package', action='search', class_="btn btn-primary", icon="shopping-cart" %} +{% endblock %} + +{% block primary_content_inner %} +

{{ _('Acquired Datasets') }}

+ {% if acquired_datasets %} + {% snippet 'snippets/package_list.html', packages=acquired_datasets %} + {% else %} +

+ {{ _('You haven\'t acquired any datasets.') }} + {% link_for _('Acquire one now?'), controller='package', action='search' %} +

+ {% endif %} +{% endblock %}