Skip to content

Commit

Permalink
Add OpenAPI navigation tab to header
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez committed Oct 25, 2024
1 parent 8f0c094 commit 7a6b66d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ckanext/miteco/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,19 @@
{% endif %}
<img src="{{ logo_url }}" alt="{{ g.site_title }}" title="{{ g.site_title }}" />
</a>
{% endblock %}

{% block header_site_navigation_tabs %}
{% set org_type = h.default_group_type('organization') %}
{% set group_type = h.default_group_type('group') %}

{{ h.build_nav_main(
(dataset_type ~ '.search', h.humanize_entity_type('package', dataset_type, 'main nav') or _('Datasets'), ["dataset", "resource"]),
(org_type ~ '.index',
h.humanize_entity_type('organization', org_type, 'main nav') or _('Organizations'), ['organization']),
(group_type ~ '.index',
h.humanize_entity_type('group', group_type, 'main nav') or _('Groups'), ['group']),
('home.about', _('About')) ,
('openapi.openapi_index', _('OpenAPI'))
) }}
{% endblock %}

0 comments on commit 7a6b66d

Please sign in to comment.