{% extends "page.html" %} {% set dataset_type = h.default_package_type() %} {% block subtitle -%} {{ ui.subtitle_item(group_dict.display_name) if group_dict }} {{- ui.subtitle_item(h.humanize_entity_type('group', group_type, 'page title') or _('Groups')) }} {{- super() }} {%- endblock %} {% block breadcrumb_content -%} {{ ui.breadcrumb(h.humanize_entity_type('group', group_type, 'breadcrumb') or _('Groups'), href=h.url_for(group_type+'.index')) }} {{- ui.breadcrumb(group_dict.display_name|truncate(35), href=h.url_for(group_type+'.read', id=group_dict.name), attrs={"title": group_dict.display_name}, active=true) }} {%- endblock %} {% block content_action -%} {{ ui.content_action(h.humanize_entity_type('package', dataset_type, 'add link') or _("Add Dataset"), href=h.url_for(dataset_type ~ '.new'), icon="plus-square") if h.check_access('package_create') }} {{- ui.content_action(_('Manage'), href=h.url_for(group_type+'.edit', id=group_dict.name), icon="wrench", style="secondary") if h.check_access('group_update', {'id': group_dict.id}) }} {%- endblock %} {% block content_primary_nav -%} {{ ui.content_nav_item(h.humanize_entity_type('package', dataset_type, 'content tab') or _('Datasets'), href=h.url_for(group_type + '.read', id=group_dict.name), icon='sitemap', active=request.endpoint==group_type + '.read') }} {{- ui.content_nav_item(_('Members'), href=h.url_for(group_type + '.members', id=group_dict.name), icon='users', active=request.endpoint==group_type + '.members') }} {{- ui.content_nav_item( _('About'), href=h.url_for(group_type + '.about', id=group_dict.name), icon='info-circle', active=request.endpoint==group_type + '.about') }} {%- endblock %} {% block secondary_content %} {% snippet "group/snippets/info.html", group=group_dict, show_nums=true, am_following=am_following %} {% endblock %} {% block links %} {{ super() }} {% include "group/snippets/feeds.html" %} {% endblock %}