From 07b5e8bd5e4fe1805bbd265e42b1476961f723f4 Mon Sep 17 00:00:00 2001 From: blagoja Date: Thu, 31 Oct 2024 12:08:36 +0100 Subject: [PATCH 1/2] Remove social and follow button --- ckanext/alisea/templates/package/snippets/info.html | 3 +++ ckanext/alisea/templates/snippets/social.html | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 ckanext/alisea/templates/package/snippets/info.html create mode 100644 ckanext/alisea/templates/snippets/social.html diff --git a/ckanext/alisea/templates/package/snippets/info.html b/ckanext/alisea/templates/package/snippets/info.html new file mode 100644 index 0000000..fa1f2a2 --- /dev/null +++ b/ckanext/alisea/templates/package/snippets/info.html @@ -0,0 +1,3 @@ +{% block package_info %} +{# Removes the follow button and info #} +{% endblock %} \ No newline at end of file diff --git a/ckanext/alisea/templates/snippets/social.html b/ckanext/alisea/templates/snippets/social.html new file mode 100644 index 0000000..f638201 --- /dev/null +++ b/ckanext/alisea/templates/snippets/social.html @@ -0,0 +1,4 @@ +{% set current_url = h.full_current_url() %} +{% block social %} +{# Rmoves the facebook and twitter share #} +{% endblock %} \ No newline at end of file From b29d55a1ab990d1773d48890b70c210ed49b8957 Mon Sep 17 00:00:00 2001 From: blagoja Date: Thu, 31 Oct 2024 14:34:22 +0100 Subject: [PATCH 2/2] Remove library submenus --- ckanext/alisea/templates/header.html | 16 +++++++--------- ckanext/alisea/templates/snippets/social.html | 1 - 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/ckanext/alisea/templates/header.html b/ckanext/alisea/templates/header.html index 06d5652..dcab523 100644 --- a/ckanext/alisea/templates/header.html +++ b/ckanext/alisea/templates/header.html @@ -115,13 +115,12 @@

{{ g.site_description }}

  • {{ _('Insights') }}
  • - - - - - - -
  • + {{ h.build_nav_main( + (dataset_type ~ '.search', h.humanize_entity_type('package', dataset_type, 'main nav') or _('Library'), ["dataset", "resource"]) ) }} +
  • + +
  • {{ _('Map Explorer') }}
  • @@ -154,7 +153,6 @@

    {{ g.site_description }}

    - {% endblock %} {% block header_site_search %}