From 1174170ed040efd0e2a68b4f91d212e3d1e39997 Mon Sep 17 00:00:00 2001 From: ThrawnCA Date: Thu, 30 Jan 2025 13:42:37 +1000 Subject: [PATCH] [QOLDEV-982] override new organisation info template - This takes over from 'snippets/organization.html' on CKAN 2.11+ --- .../templates/organization/snippets/info.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ckanext/publications_qld_theme/templates/organization/snippets/info.html diff --git a/ckanext/publications_qld_theme/templates/organization/snippets/info.html b/ckanext/publications_qld_theme/templates/organization/snippets/info.html new file mode 100644 index 0000000..55cfc32 --- /dev/null +++ b/ckanext/publications_qld_theme/templates/organization/snippets/info.html @@ -0,0 +1,16 @@ +{% ckan_extends %} + +{% block image %}{% endblock %} + +{% block description %} + {% if organization.description %} +

+ {{ h.markdown_extract(organization.description, 180) }} +

+

+ {% link_for _('read more'), named_route=organization.type ~ '.about', id=organization.name %} +

+ {% endif %} +{% endblock %} + +{% block package_openness %}{% endblock %}