This commit is contained in:
@@ -78,12 +78,24 @@ $roleAssignments = $canManageRoles && $access ? $access->listRoleAssignments() :
|
||||
<h1>Community</h1>
|
||||
<p class="forum-hero__copy">Fragen stellen, Erfahrungen teilen, Antworten finden und gemeinsam weiterdenken.</p>
|
||||
</div>
|
||||
<div class="forum-hero__actions">
|
||||
<?php if ($userId): ?>
|
||||
<button class="btn" type="button" data-modal-open="modalThread">Neues Thema</button>
|
||||
<?php else: ?>
|
||||
<a class="btn" href="/login">Einloggen und schreiben</a>
|
||||
<?php endif; ?>
|
||||
<div class="forum-hero__actions forum-hero__actions--stack">
|
||||
<form method="get" class="forum-search forum-search--hero">
|
||||
<?php if ($boardSlug !== ''): ?>
|
||||
<input type="hidden" name="board" value="<?= htmlspecialchars($boardSlug, ENT_QUOTES) ?>">
|
||||
<?php endif; ?>
|
||||
<label class="label" for="searchQHero">Suche</label>
|
||||
<div class="forum-search__row">
|
||||
<input id="searchQHero" name="q" class="input" value="<?= htmlspecialchars($search, ENT_QUOTES) ?>" placeholder="Thema oder Stichwort suchen">
|
||||
<button class="btn" type="submit">Suchen</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="forum-hero__cta">
|
||||
<?php if ($userId): ?>
|
||||
<button class="btn" type="button" data-modal-open="modalThread">Neues Thema</button>
|
||||
<?php else: ?>
|
||||
<a class="btn" href="/login">Einloggen und schreiben</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -147,21 +159,14 @@ $roleAssignments = $canManageRoles && $access ? $access->listRoleAssignments() :
|
||||
<div class="forum-board" style="margin-top:24px;">
|
||||
<div class="forum-board__head">
|
||||
<div>
|
||||
<h2><?= htmlspecialchars($selectedBoard['title'] ?? 'Themenübersicht', ENT_QUOTES) ?></h2>
|
||||
<h2><?= htmlspecialchars($selectedBoard['title'] ?? 'Neueste Themen', ENT_QUOTES) ?></h2>
|
||||
<p class="muted">
|
||||
<?= htmlspecialchars($selectedBoard['description'] ?? 'Hier findest du die neuesten Themen, Antworten und laufenden Gespräche.', ENT_QUOTES) ?>
|
||||
<?= htmlspecialchars($selectedBoard['description'] ?? 'Hier siehst du die zuletzt erstellten oder zuletzt aktiven Themen aus der Community.', ENT_QUOTES) ?>
|
||||
</p>
|
||||
</div>
|
||||
<form method="get" class="forum-search">
|
||||
<?php if ($boardSlug !== ''): ?>
|
||||
<input type="hidden" name="board" value="<?= htmlspecialchars($boardSlug, ENT_QUOTES) ?>">
|
||||
<?php endif; ?>
|
||||
<label class="label" for="searchQ">Suche</label>
|
||||
<div class="forum-search__row">
|
||||
<input id="searchQ" name="q" class="input" value="<?= htmlspecialchars($search, ENT_QUOTES) ?>" placeholder="Schlagwort eingeben">
|
||||
<button class="btn" type="submit">Suchen</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php if ($selectedBoard): ?>
|
||||
<a class="btn ghost" href="/community">Alle Bereiche anzeigen</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="forum-list">
|
||||
|
||||
Reference in New Issue
Block a user