{% extends "base.html" %}
{% block title %}forward track record{% endblock %}
{% block body %}
<table hx-get="/" hx-trigger="every 60s" hx-select="table" hx-swap="outerHTML">
  <thead><tr><th>strategy</th><th>sleeve</th><th>days</th><th>ret%</th><th>Sharpe</th>
    <th>maxDD</th><th>nav</th><th>gate</th></tr></thead>
  <tbody>
  {% for f in fleet %}
    <tr>
      <td><a href="/strategy/{{ f.strategy_id }}">{{ f.display_name }}</a></td>
      <td class="muted">{{ f.sleeve }}</td>
      <td>{{ f.days }}</td>
      <td class="{{ 'pos' if f.total_return_pct >= 0 else 'neg' }}">{{ '%+.2f'|format(f.total_return_pct) }}</td>
      <td>{{ '%.2f'|format(f.sharpe) }}</td>
      <td class="neg">{{ '%.1f'|format(100*f.maxdd) }}%</td>
      <td>{{ spark(f.strategy_id)|safe }}</td>
      <td><span class="badge {{ f.gate_status }}">{{ f.gate_status }}</span></td>
    </tr>
  {% endfor %}
  </tbody>
</table>
<p class="muted">gate is a Phase-1 paper-forward verdict — it reports, it never acts. Short windows are noise.</p>
{% endblock %}
