{% ckan_extends %} {% block content_primary_nav %} {{ super() }} {# CKAN 2.12 views pass group_dict as a template variable; some (e.g. the activity stream) no longer set g.group_dict at all. #} {% set pages_group = group_dict or g.group_dict %} {# The nav is a flexbox: CSS `order` places this organization's pages among CKAN's own tabs without rebuilding them (they come from core and ckanext-activity through super()). Datasets 10, Members 20, About 30, Activity Stream 40, Pages 50, a page of order n at 10n+5 - so 0 is before Datasets and 4 between Activity Stream and Pages. A tab added by another plugin sits at 45, after CKAN's own. #} {% set pages_index_url = h.url_for('pages.organization_pages_index', id=pages_group.name) %}