kommentarfunktion und nächster admin button fix
This commit is contained in:
@@ -240,26 +240,86 @@
|
||||
|
||||
<details class="attendance-list">
|
||||
<summary>
|
||||
{{ attending_count }} Zusage{% if attending_count != 1 %}n{% endif %} anzeigen
|
||||
{{ attending_count }} Zusage{% if attending_count != 1 %}n{% endif %}
|
||||
· {{ ticket_seeker_count }} sucht Ticket
|
||||
</summary>
|
||||
|
||||
{% if attending_users %}
|
||||
<div class="attendance-groups">
|
||||
|
||||
<ul>
|
||||
{% for attendee in attending_users %}
|
||||
<li>{{ attendee.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div>
|
||||
<h3>✓ Zugesagt</h3>
|
||||
|
||||
{% else %}
|
||||
{% if attending_users %}
|
||||
<ul>
|
||||
{% for attendee in attending_users %}
|
||||
<li>{{ attendee.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Noch niemand hat zugesagt.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<p>Noch niemand hat zugesagt.</p>
|
||||
<div>
|
||||
<h3>🎟️ Sucht ein Ticket</h3>
|
||||
|
||||
{% endif %}
|
||||
{% if ticket_seekers %}
|
||||
<ul>
|
||||
{% for seeker in ticket_seekers %}
|
||||
<li>{{ seeker.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Aktuell sucht niemand ein Ticket.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</details>
|
||||
|
||||
</section>
|
||||
|
||||
<section class="comments-section" id="comments">
|
||||
|
||||
<h2>💬 Kommentare</h2>
|
||||
|
||||
<form method="post" action="/concerts/{{ concert.id }}/comments" class="comment-form">
|
||||
<label for="comment-body">Mit anderen Konzertbesuchern austauschen</label>
|
||||
<textarea
|
||||
id="comment-body"
|
||||
name="body"
|
||||
rows="4"
|
||||
maxlength="2000"
|
||||
required
|
||||
placeholder="Schreib einen Kommentar …"
|
||||
></textarea>
|
||||
<button type="submit" class="attendance-option comment-submit">
|
||||
Kommentar senden
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% if comments %}
|
||||
|
||||
<div class="comment-list">
|
||||
{% for comment in comments %}
|
||||
<article class="comment">
|
||||
<div class="comment-meta">
|
||||
<strong>{{ comment.author }}</strong>
|
||||
<span>{{ comment.created_at }}</span>
|
||||
</div>
|
||||
<p>{{ comment.body }}</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
<p class="comments-empty">Noch keine Kommentare. Mach den Anfang!</p>
|
||||
|
||||
{% endif %}
|
||||
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user