{# An account's addresses, newest first, each with the other accounts seen
there (src/handlers/moderation.rs user_ips). Staff only; this lookup is in
the moderation log. #}
<div id="user-ips" class="space-y-2" data-user-ips>
{% for r in rows %}
<div class="rounded-box border border-base-300 bg-base-100 p-2 text-sm">
<div class="flex flex-wrap items-baseline gap-x-2">
<a href="/admin/ips/{{ r.at.ip }}" class="font-mono link link-hover">{{ r.at.ip }}</a>
<span class="text-xs opacity-70" title="{{ r.at.last_seen_abs }}">last {{ r.at.last_seen }} ({{ r.at.last_action | replace("_", " ") }}) · first {{ r.at.first_seen }} · {{ r.at.count }}×</span>
</div>
{% if r.others %}
<p class="mt-1 text-xs"><span class="opacity-60">Also here:</span>
{% for o in r.others %}<a href="/admin/users/{{ o.user_id }}" class="link link-hover font-medium">{{ o.username }}</a>{% if o.status %} <span class="badge badge-xs {% if 'suspended' in o.status %}badge-error{% elif 'read-only' in o.status %}badge-warning{% else %}badge-ghost{% endif %}">{{ o.status }}</span>{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}
</p>
{% endif %}
</div>
{% else %}
<p class="text-sm opacity-60">No addresses recorded in the last {{ retention_days }} days.</p>
{% endfor %}
</div>
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
1.3 KiB · text
History
a4db355