{% 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 100, Members 200, About 300, Activity Stream 400, Pages 500; a page at position n, rank r at n*100 + 50 + r (h.pages_tab_css_order, ckanext/pages/ordering.py) - so position 0 is before Datasets and 4 between Activity Stream and Pages. A tab added by another plugin sits at 470, after CKAN's own. #} {% set pages_index_url = h.url_for('pages.organization_pages_index', id=pages_group.name) %}