Updated game
This commit is contained in:
1 parent
6a56e5a921
commit
f924016478
7 files changed
+180
-65
No files matched your search
@@ -37,7 +37,7 @@
|
||||
<div class="tab-container">
|
||||
<button class="tab-button active-tab" data-target="control-panel"><i data-lucide="sliders"></i> Steuerung</button>
|
||||
<button class="tab-button" data-target="player-panel"><i data-lucide="users"></i> Spieler</button>
|
||||
<button class="tab-button" data-target="kill-panel"><i data-lucide="skull"></i> Kills</button>
|
||||
<button class="tab-button" data-target="kill-panel"><i data-lucide="message-square"></i> Meldungen</button>
|
||||
</div>
|
||||
|
||||
<div id="control-panel" class="tab-content active-content">
|
||||
@@ -270,43 +270,58 @@
|
||||
<th>Zeitpunkt</th>
|
||||
<th>Killer</th>
|
||||
<th>Opfer</th>
|
||||
<th>Status</th>
|
||||
<th>Aktionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for kill in kill_logs %}
|
||||
{% for report in kill_logs %}
|
||||
<tr>
|
||||
<td>{{ report.kill_timestamp[:16].replace('T', ' ') if report.kill_timestamp else '-' }}</td>
|
||||
<td>{{ report.killer_name or 'Unbekannt' }} ({{ report.killer_identifier }})</td>
|
||||
<td>{{ report.victim_name or 'Unbekannt' }} ({{ report.victim_identifier }})</td>
|
||||
<td>
|
||||
{% if report.report_status == 'confirmed' %}
|
||||
<span class="status-pill success-pill" style="margin-left: 0;">Bestätigt</span>
|
||||
{% elif report.report_status == 'pending' %}
|
||||
<span class="status-pill warning-pill" style="margin-left: 0;">Ausstehend</span>
|
||||
{% elif report.report_status == 'rejected' %}
|
||||
<span class="status-pill danger-pill" style="margin-left: 0;">Abgelehnt</span>
|
||||
{% elif report.report_status == 'revoked' %}
|
||||
<span class="status-pill danger-pill" style="margin-left: 0;">Widerrufen</span>
|
||||
{% else %}
|
||||
{{ report.report_status }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if report.report_status == 'confirmed' %}
|
||||
<form action="{{ url_for('handle_administrator_action') }}" method="POST" class="flexible_form_container admin-asynchronous-form">
|
||||
<input type="hidden" name="action_type" value="edit_kill">
|
||||
<input type="hidden" name="kill_id" value="{{ kill.kill_id }}">
|
||||
<input type="datetime-local" name="kill_timestamp" value="{{ kill.kill_timestamp[:16] if kill.kill_timestamp else '' }}" class="text-input small-input" required>
|
||||
</td>
|
||||
<td>
|
||||
<select name="new_killer_identifier" class="text-input small-input">
|
||||
<option value="">Keiner (Admin)</option>
|
||||
{% for p in all_players %}
|
||||
<option value="{{ p.player_identifier }}" {% if p.player_identifier == kill.killer_identifier %}selected{% endif %}>{{ p.display_name }} ({{ p.player_identifier }})</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
{{ kill.victim_name or 'Unbekannt' }} ({{ kill.victim_identifier }})
|
||||
</td>
|
||||
<td>
|
||||
<button type="submit" class="action-button primary-button small-button" title="Speichern"><i data-lucide="save"></i></button>
|
||||
</form>
|
||||
|
||||
<form action="{{ url_for('handle_administrator_action') }}" method="POST" class="flexible_form_container admin-asynchronous-form" style="margin-top: var(--spacing-small);">
|
||||
<input type="hidden" name="action_type" value="revoke_kill">
|
||||
<input type="hidden" name="kill_id" value="{{ kill.kill_id }}">
|
||||
<input type="hidden" name="kill_identifier" value="{{ report.kill_identifier }}">
|
||||
<button type="submit" class="action-button danger-button small-button"><i data-lucide="rotate-ccw"></i> Rückgängig</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% if report.report_status == 'pending' %}
|
||||
<form action="{{ url_for('handle_administrator_action') }}" method="POST" class="flexible_form_container admin-asynchronous-form">
|
||||
<input type="hidden" name="action_type" value="force_confirm_report">
|
||||
<input type="hidden" name="kill_identifier" value="{{ report.kill_identifier }}">
|
||||
<button type="submit" class="action-button success-button small-button"><i data-lucide="check"></i> Bestätigen</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% if report.report_status in ['pending', 'rejected', 'revoked'] %}
|
||||
<form action="{{ url_for('handle_administrator_action') }}" method="POST" class="flexible_form_container admin-asynchronous-form" style="margin-top: var(--spacing-small);">
|
||||
<input type="hidden" name="action_type" value="delete_report">
|
||||
<input type="hidden" name="kill_identifier" value="{{ report.kill_identifier }}">
|
||||
<button type="submit" class="action-button secondary-button small-button"><i data-lucide="trash-2"></i> Löschen</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="4" style="text-align: center; opacity: 0.6;">Bisher keine Kills im System.</td>
|
||||
<td colspan="5" style="text-align: center; opacity: 0.6;">Bisher keine Meldungen im System.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in new issue
Block a user