{% extends "base.html" %} {% from "icons.html" import icon, sep %} {% block title %}{{ _("Activity") }} · {{ space.name }} · Synaptane{% endblock %} {% block crumbs %}{{ sep() }}{{ org.name }}{{ sep() }}{{ space.name }}{{ sep() }}{{ _("Activity") }}{% endblock %} {% block content %} {% set space_tab = "activity" %}{% include "space-tabs.html" %} {% set base = '/o/' ~ org.slug ~ '/' ~ space.slug %}

{{ _("Activity") }}

{{ _("Everything that changes in the space, from the Git history: pages, inbox and tidy-up, from Synaptane or pushed from elsewhere.") }}

{% set origin_labels = {"tidy": _("tidy-up"), "routine": _("routines"), "assistant": _("assistants"), "web": _("web interface"), "api": _("REST API"), "git": _("pushed with Git")} %} {% if share.total %}

{{ _("{percent}% written by AI", percent=share.ai_percent) }} · {{ _(pl(share.total, "{n} page change over the last {days} days", "{n} page changes over the last {days} days"), n=share.total, days=share.days) }}{% if not share.complete %} ({{ _("the latest ones") }}){% endif %}

{% for origin, label in origin_labels.items() if share.counts.get(origin) %}{% if not loop.first %} · {% endif %}{% if origin in ai_origins %}{{ _("AI") }} {% endif %}{{ label }} {{ share.counts[origin] }}{% endfor %}

{% endif %} {% set filters = [('', _("All")), ('page', _("Pages")), ('inbox', _("Inbox")), ('tidy', _("Tidy-up runs")), ('ai', _("Written by AI")), ('external', _("Pushed outside Synaptane"))] %} {% set labels = {"page": _("Page"), "inbox": _("Note"), "tidy": _("Tidy-up"), "system": _("Synaptane")} %}
    {% for event in events %}
  1. {{ labels[event.kind] }} {% if event.ai %}{{ _("AI") }}{% endif %} {{ event.author }}{% if event.origin == 'assistant' %} {{ _("via {client}", client=event.client) if event.client else _("via an MCP assistant") }}{% elif event.origin == 'api' %} {{ _("via the REST API") }}{% if event.client %} ({{ event.client }}){% endif %}{% endif %} {% if event.external %} · {{ _("pushed outside Synaptane") }}{% endif %}

    {% if event.kind == 'tidy' %}{{ event.subject|commit_label }}{% else %}{{ event.subject|commit_label }}{% endif %}

    {% if event.pages %} {% endif %}
  2. {% else %}
  3. {{ _("No activity yet.") if not kind else _("No activity of this kind.") }}
  4. {% endfor %}
{% if following %}{{ _("Older") }}{% endif %} {% endblock %}