{# Every page under Projects. The sidebar picks the scope — All projects, or one project (`p`) — and the tabs pick the view. Each link keeps the other one: a project in the sidebar opens on the current tab; a tab stays in the current scope. #} {% extends "base.html" %} {% from "_macros.html" import icon %} {% from "_project_macros.html" import health_dot, pin_form, health_labels, status_chip with context %} {% block title %}{{ p.name if p else "All projects" }} — apo{% endblock %} {% block body_class %}page-project{% endblock %} {% set tabs = [("overview", "Overview", ""), ("work", "Work", "/work"), ("agents", "Agents", "/agents"), ("activity", "History", "/activity")] %} {% set tab_suffix = {"overview": "", "work": "/work", "decisions": "/decisions", "agents": "/agents", "activity": "/activity", "settings": "/settings"}[tab] %} {% set all_suffix = "" if tab == "settings" else tab_suffix %} {% set scope_base = "/projects/" ~ p.id if p else "/projects" %} {% block content %}
{% if p %} {% else %} {% endif %} {% block tab %}{% endblock %}
{% endblock %} {% block extra_script %}{% endblock %}