ckanext-d4science_theme/ckanext/d4science_theme/templates/group/read_base.html

36 lines
1.4 KiB
HTML

{% extends "page.html" %}
{% block subtitle %}{{ c.group_dict.display_name }} - {{ _('Groups') }}{% endblock %}
{% block breadcrumb_content %}
<li>{% link_for _('Groups'), controller='group', action='index' %}</li>
<li class="active">{% link_for c.group_dict.display_name|truncate(35), controller='group', action='read', id=c.group_dict.name %}</li>
{% endblock %}
{% block content_action %}
{% if h.check_access('group_update', {'id': c.group_dict.id}) %}
{% link_for _('Manage'), controller='group', action='edit', id=c.group_dict.name, class_='btn', icon='wrench' %}
{% endif %}
{% endblock %}
{% block content_primary_nav %}
{{ h.build_nav_icon('group_read', _('Datasets'), id=c.group_dict.name) }}
<!-- Added by Francesco Mangiacrapa. see: #6572 -->
{% if h.check_access('group_update', {'id': c.group_dict.id}) %}
{% set role_for_user = h.d4science_theme_get_user_role_for_group_or_org(c.group_dict.id, c.userobj.name) %}
{% if (role_for_user and role_for_user == 'admin') or c.userobj.sysadmin %}
{{ h.build_nav_icon('group_activity', _('Activity Stream'), id=c.group_dict.name, offset=0) }}
{% endif %}
{% endif %}
{{ h.build_nav_icon('group_about', _('About'), id=c.group_dict.name) }}
{% endblock %}
{% block secondary_content %}
{% snippet "group/snippets/info.html", group=c.group_dict, show_nums=true %}
{% endblock %}
{% block links %}
{{ super() }}
{% include "group/snippets/feeds.html" %}
{% endblock %}