{% extends "base.html" %} {% import "macros/ui.html" as m %} {% block title %}Notifications — Ontoref{% endblock title %} {% block nav_notifications %}active{% endblock nav_notifications %} {% block nav_group_track %}active{% endblock nav_group_track %} {% block content %}

Notifications

{{ total }} total

{% if other_projects %} {% endif %}
{% if notifications | length == 0 %} {{ m::empty_state(message="No notifications in store") }} {% else %}
{% for n in notifications %} {% endfor %}
# Type Project Content Source Age
{{ n.id }} {% if n.is_custom %} {{ n.custom_kind | default(value="custom") }} {% else %} {{ m::event_badge(event=n.event) }} {% endif %} {{ n.project }} {% if n.source_project and n.source_project != n.project %} ← {{ n.source_project }} {% endif %} {% if n.is_custom %}
{{ n.custom_title | default(value="") }}
{% if n.custom_payload %} {% set p = n.custom_payload %} {% if p.actions %}
{% for act in p.actions %}
{% endfor %}
{% else %}
payload
{{ p | json_encode(pretty=true) }}
{% endif %} {% endif %} {% else %}
{% for f in n.files %} {{ f }} {% endfor %}
{% endif %}
{{ n.source_actor | default(value="—") }} {{ n.age_secs }}s ago
{% endif %} {% if other_projects %} {% endif %} {% endblock content %} {% block scripts %} {% endblock scripts %}