{% extends "user/dashboard.html" %} {% set dataset_type = h.default_package_type() %} {% block page_primary_action -%} {{ ui.page_action(h.humanize_entity_type('package', dataset_type, 'add link') or _("Add Dataset"), href=h.url_for(dataset_type ~ '.new'), icon="plus-square") if h.check_access('package_create') }} {%- endblock %} {% block page_heading %} {{ ui.heading(h.humanize_entity_type('package', dataset_type, 'my label') or _('My Datasets'), attrs={"class": "mt-3 mt-md-0"}, level=1) }} {% endblock %} {% block primary_content_inner %} {% if user_dict.datasets %} {% snippet 'snippets/package_list.html', packages=user_dict.datasets %} {% else %} {%- call ui.util.call(ui.empty) -%} {{ _('You haven\'t created any datasets.') }} {{ ui.link(_('Create one now?'), href=h.url_for(dataset_type ~ '.new')) if h.check_access('package_create') }} {%- endcall %} {% endif %} {% endblock %}