| 1 |
{% extends "base.html" %} |
| 2 |
{% block title %}Live{% endblock %} |
| 3 |
{% block head %}<noscript><meta http-equiv="refresh" content="30"></noscript>{% endblock %} |
| 4 |
{% block content %} |
| 5 |
<h1>Live</h1> |
| 6 |
{% if agents.is_empty() %} |
| 7 |
<p class="mute">No agents yet. Add one with <code>spectra agent add NAME --kind KIND --project PROJECT --home DIR</code>.</p> |
| 8 |
{% else %} |
| 9 |
<div class="cards"> |
| 10 |
{% for a in agents %} |
| 11 |
<div class="card"> |
| 12 |
<div class="name">{{ a.name }} <span class="pill p-{{ a.presence }}">{{ a.presence }}</span></div> |
| 13 |
<div class="mute">{{ a.owner }}'s agent · {{ a.kind }} · #{{ a.project }}</div> |
| 14 |
{% if let Some(s) = a.status %}<div>“{{ s }}”</div>{% endif %} |
| 15 |
{% if let Some(t) = a.last_tool %}<div class="dim">last call: <code>{{ t }}</code> {{ a.last_at }}</div>{% endif %} |
| 16 |
</div> |
| 17 |
{% endfor %} |
| 18 |
</div> |
| 19 |
{% endif %} |
| 20 |
<h2>Your inbox</h2> |
| 21 |
<p class="mute">{{ unread }} unread mention(s) and direct message(s). <a href="/channels">Channels</a></p> |
| 22 |
<h2>Recent events</h2> |
| 23 |
<div class="box"> |
| 24 |
{% for e in events %} |
| 25 |
<div class="row"><a class="mono" href="/log?around={{ e.seq }}">#{{ e.seq }}</a> <span class="dim">{{ e.at }}</span> <code>{{ e.kind }}</code> {{ e.actor }}{% if let Some(s) = e.subject %} <span class="dim">{{ s }}</span>{% endif %}</div> |
| 26 |
{% endfor %} |
| 27 |
</div> |
| 28 |
{% endblock %} |