{% extends "base.html" %} {% from "icons.html" import icon, sep %} {% from "ui.html" import section_tabs with context %} {% set sections = [("spaces", "/o/" ~ org.slug, _("Spaces"))] %} {% if manage %}{% set sections = sections + [ ("members", "/o/" ~ org.slug ~ "/-/members", _("Members")), ("ai", "/o/" ~ org.slug ~ "/-/ai", _("Artificial intelligence")), ("semantic", "/o/" ~ org.slug ~ "/-/embeddings", _("Semantic search")), ("webhooks", "/o/" ~ org.slug ~ "/-/webhooks", _("Webhooks")), ("settings", "/o/" ~ org.slug ~ "/-/settings", _("Settings")), ] %}{% endif %} {% set section_title = (sections|selectattr(0, "equalto", section)|map(attribute=2)|first) if section != "spaces" else "" %} {% block title %}{% if section_title %}{{ section_title }} · {% endif %}{{ org.name }} · Synaptane{% endblock %} {% block crumbs %}{{ sep() }}{% if section_title %}{{ org.name }}{{ sep() }}{{ section_title }}{% else %}{{ org.name }}{% endif %}{% endblock %} {% block content %} {% if sections|length > 1 %}{{ section_tabs(_("Organization sections"), sections, section) }}{% endif %}
{% block section %}{% endblock %}
{% endblock %}