{% extends "package/base.html" %}
{% set default_group_type = h.default_group_type('group') %}
{% block subtitle -%}
{{ ui.subtitle_item(h.dataset_display_name(pkg)) }}
{{- super() }}
{%- endblock %}
{% block head_extras -%}
{{ super() }}
{% set description = h.markdown_extract(h.get_translated(pkg, 'notes'), extract_length=200) %}
{% endblock -%}
{% block content_action -%}
{% if h.check_access('package_update', {'id':pkg.id }) -%}
{{ ui.content_action(_('Add new resource'), href=h.url_for(pkg.type ~ '_resource.new', id=pkg.name), icon="plus") }}
{{- ui.content_action(_('Manage'), href=h.url_for(pkg.type ~ '.edit', id=pkg.name), icon="wrench", style="secondary") }}
{%- endif %}
{%- endblock %}
{% block content_primary_nav -%}
{{ ui.content_nav_item(_('Dataset'), href=h.url_for(dataset_type ~ '.read', id=pkg.name), icon='sitemap', active=request.endpoint==dataset_type ~ '.read') }}
{{- ui.content_nav_item(h.humanize_entity_type('group', default_group_type, 'content tab') or _('Groups'), href=h.url_for(dataset_type ~ '.groups', id=pkg.name), icon='users', active=request.endpoint==dataset_type ~ '.groups') }}
{%- endblock %}
{% block secondary_content %}
{% block package_info %}
{%- with pkg=pkg_dict -%}
{%- include 'package/snippets/info.html' -%}
{%- endwith %}
{% endblock %}
{% block package_social %}
{% include "snippets/social.html" %}
{% endblock %}
{% block package_license %}
{%- include "snippets/license.html" -%}
{% endblock %}
{% endblock %}