SielBotWebsite/templates/alliance.html
Maaxxs 294dbc69cc Allianz: Verbindung zur Website, Mitgliederabgleich und anstehende Raids
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 07:58:54 +02:00

85 lines
4.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% block title %}Allianz{% endblock %}
{% block content %}
<div class="page-head">
<h1>Allianz</h1>
<p class="muted">Siel und lumina-ascendens.de: die Raids der Elyos Allianz und der Abgleich der Mitglieder. Raids legt ihr weiter auf der Website an, den Raid-Kanal wählt ihr dort unter Verwaltung → Discord-Bot.</p>
</div>
{% if error %}
<div class="flash flash-error">{{ error }}</div>
{% else %}
{% set w = data.website %}
{% set m = data.members %}
<div class="cards">
<div class="card">
<div class="card-label">Website</div>
{% if w.url and w.callback_key and w.api_key %}
<div class="stat"><span class="dot {{ 'dot-on' if w.last_contact.at else 'dot-off' }}"></span>{{ "Verbunden" if w.last_contact.at else "Eingerichtet" }}</div>
<div class="muted small">
{% if w.last_contact.at %}Letzter Kontakt {{ w.last_contact.at | datetime }}{% else %}Die Website hat sich seit dem letzten Start von Siel noch nicht gemeldet.{% endif %}
</div>
{% else %}
<div class="stat"><span class="dot dot-off"></span>Nicht eingerichtet</div>
<div class="muted small">In /root/sielbot/.env fehlt:
{% if not w.url %}WEBSITE_URL {% endif %}{% if not w.callback_key %}WEBSITE_BOT_KEY {% endif %}{% if not w.api_key %}WEBSITE_API_KEY{% endif %}</div>
{% endif %}
</div>
<div class="card">
<div class="card-label">Mitgliederabgleich</div>
{% if m.error %}
<div class="stat"><span class="dot dot-err"></span>Fehler</div>
<div class="muted small">{{ m.error.text }} ({{ m.error.at | datetime }})</div>
{% elif m.last_sync %}
<div class="stat"><span class="dot dot-on"></span>Aktiv</div>
<div class="muted small">{{ m.last_sync | datetime }}: {{ m.last_sync_result }}</div>
{% else %}
<div class="stat"><span class="dot dot-off"></span>{{ "Wartet" if not m.last_sync_result else "Ausgesetzt" }}</div>
<div class="muted small">{{ m.last_sync_result or "Der erste Abgleich läuft kurz nach dem Start von Siel, danach alle 30 Minuten." }}</div>
{% endif %}
</div>
<div class="card">
<div class="card-label">Server</div>
{% for g in m.guilds %}
<div class="stat stat-sm">{{ g.name }}</div>
<div class="muted small">{{ g.member_count }} Mitglieder · {{ "Elyos Allianz" if g.dach else "Legion – nur Mitgliederliste" }}{% if not g.loaded %} · lädt noch …{% endif %}</div>
{% endfor %}
</div>
</div>
<section class="panel">
<h2>Anstehende Raids <span class="muted">({{ data.raids.active | length }})</span></h2>
{% if data.raids.active %}
<div class="table-wrap">
<table class="table">
<thead><tr><th>Raid</th><th>Start</th><th>Kanal</th><th>Angemeldet</th><th>Ersatzbank</th><th>Abgemeldet</th><th>Raid-Lead</th></tr></thead>
<tbody>
{% for r in data.raids.active %}
<tr>
<td><strong>{{ r.title }}</strong></td>
<td class="small nowrap">{{ r.timestamp | datetime }}</td>
<td class="small">{{ "#" ~ r.channel if r.channel else "–" }}</td>
<td>{{ r.signed_up }} / {{ r.max_slots }}</td>
<td>{{ r.bench }}</td>
<td>{{ r.declined }}</td>
<td class="small">{{ r.lead or "–" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p class="muted">Gerade steht kein Raid an. Neue Raids der Elyos Allianz legt ihr auf <a href="https://lumina-ascendens.de/raids.php?bereich=consilium" target="_blank" rel="noopener">lumina-ascendens.de</a> an.</p>
{% endif %}
<p class="muted small">{{ data.raids.archived }} archivierte Raids. Archivierte Raid-Nachrichten verschwinden etwa eine Minute nach dem Archivieren aus dem Discord-Kanal.</p>
</section>
{% if w.last_contact.errors %}
<section class="panel">
<h2>Letzte Fehler</h2>
<ul class="plain">
{% for e in w.last_contact.errors %}<li class="small"><span class="muted">{{ e.at | datetime }}</span> {{ e.text }}</li>{% endfor %}
</ul>
</section>
{% endif %}
{% endif %}
{% endblock %}