From 5021da7d47dfc04bec352480a5bcd3e917355802 Mon Sep 17 00:00:00 2001 From: blagoja Date: Sun, 10 Mar 2024 20:35:16 +0100 Subject: [PATCH] Add activity and group tab --- ckanext/iaea/templates/package/read_base.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ckanext/iaea/templates/package/read_base.html b/ckanext/iaea/templates/package/read_base.html index aee1a48..b78be18 100644 --- a/ckanext/iaea/templates/package/read_base.html +++ b/ckanext/iaea/templates/package/read_base.html @@ -20,6 +20,8 @@ {% block content_primary_nav %} {{ h.build_nav_icon('dataset_read', _('Dataset'), id=pkg.name) }} {{ h.build_nav_icon('iaea.metadata', _('Metadata'), id=pkg.name, icon='fa fa-tag') }} + {{ h.build_nav_icon(dataset_type ~ '.groups', _('Groups'), id=pkg.id if is_activity_archive else pkg.name, icon='users') }} + {{ h.build_nav_icon(dataset_type ~ '.activity', _('Activity Stream'), id=pkg.id if is_activity_archive else pkg.name, icon='clock-o') }} {% if h.check_access('package_update', {'id':pkg.id }) %} {{ h.build_nav_icon('iaea.feature_view', _('View'), id=pkg.name, icon='check-square-o') }} {% endif %}