31 lines
1.1 KiB
HTML
31 lines
1.1 KiB
HTML
{% extends shell_base %}
|
|
|
|
{% block title %}Benachrichtigungen · CheckPoint Ehrenamt{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>Benachrichtigungen</h1>
|
|
|
|
{% if eintraege %}
|
|
<form method="post" action="{{ url_for('main.benachrichtigungen_gelesen') }}" class="cp-actions">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="cp-btn cp-btn--ghost">Alle als gelesen markieren</button>
|
|
</form>
|
|
|
|
<ul class="cp-list">
|
|
{% for b in eintraege %}
|
|
<li class="cp-card{{ ' cp-card--ungelesen' if not b.gelesen else '' }}">
|
|
{% if not b.gelesen %}<span class="cp-tag">Neu</span>{% endif %}
|
|
{% if b.url %}
|
|
<a href="{{ b.url }}"><strong>{{ b.text }}</strong></a>
|
|
{% else %}
|
|
<strong>{{ b.text }}</strong>
|
|
{% endif %}
|
|
<div class="cp-muted">{{ b.erstellt_am | lokalzeit }}</div>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
<p class="cp-muted">Keine Benachrichtigungen. Sobald ein Dienst, ein offener
|
|
Platz oder eine Nachricht dazukommt, erscheint sie hier.</p>
|
|
{% endif %}
|
|
{% endblock %}
|