982 B · text History a4db355
{# A table of sightings: `rows`. #}
<div class="overflow-x-auto">
<table class="table table-sm">
  <thead><tr><th>Account</th><th>Address</th><th>Last seen</th><th>First seen</th><th class="text-right">Times</th></tr></thead>
  <tbody>
  {% for s in rows %}
    <tr>
      <td><a href="/admin/users/{{ s.user_id }}" class="link link-hover font-medium">{{ s.username }}</a>{% if s.status %} <span class="badge badge-xs {% if 'suspended' in s.status %}badge-error{% elif 'read-only' in s.status %}badge-warning{% else %}badge-ghost{% endif %}">{{ s.status }}</span>{% endif %}</td>
      <td class="font-mono text-xs"><a href="/admin/ips/{{ s.ip }}" class="link link-hover">{{ s.ip }}</a></td>
      <td class="text-xs" title="{{ s.last_seen_abs }}">{{ s.last_seen }} · {{ s.last_action | replace("_", " ") }}</td>
      <td class="text-xs">{{ s.first_seen }}</td>
      <td class="text-right font-mono text-xs">{{ s.count }}</td>
    </tr>
  {% endfor %}
  </tbody>
</table>
</div>