Improve event detail layout and update event dates in JSON

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
viiivoandCopilot committed 2026-04-27 20:29:39 +02:00
1 parent eb15ddb707
commit 5a8d958fa8
4 files changed
+171 -16

No files matched your search

+23 -8
View File
@@ -447,14 +447,29 @@
<strong>${event.title}</strong>
</div>
<div class="detail-action-btn-wrap">
${isFull ? `
<button class="detail-primary-btn detail-spots-pill-full" type="button" disabled>Ausgebucht</button>
` : `
<button class="detail-primary-btn${actionButtonVariantClass}" type="button" data-register-button ${actionButtonDisabled ? 'disabled' : ''}>
${actionButtonLabel}
</button>
`}
<div class="detail-action-row" style="margin-left:auto; display:flex; gap:12px; align-items:center;">
${isFull ? `
<div class="detail-dereg-column">
<button class="button-plaetze event-spots-full" type="button" disabled>Ausgebucht</button>
<small class="detail-dereg-hint detail-dereg-hint--placeholder">&nbsp;</small>
</div>
` : ''}
${(!isFull || isRegistered) ? `
<div class="detail-dereg-column">
<button class="${actionButtonVariantClass.trim()}" type="button" data-register-button ${actionButtonDisabled ? 'disabled' : ''}>
${actionButtonLabel}
</button>
${isRegistered && deregInfo.daysLeft !== null ? `
<small class="detail-dereg-hint${deregInfo.isClosed ? ' detail-dereg-hint--closed' : ''}">
${deregInfo.isClosed ? 'Abmeldefrist abgelaufen'
: deregInfo.daysLeft === 1 ? 'Noch 1 Tag zur Abmeldung'
: `Noch ${deregInfo.daysLeft} Tage zur Abmeldung`}
</small>
` : ''}
</div>
` : ''}
</div>
</div>
</section>
+1 -1
View File
@@ -536,8 +536,8 @@
</div>
</div>
<div class="event-side${isFull ? ' event-side-full' : ''}">
${sideInfoMarkup}
${actionMarkup}
${sideInfoMarkup}
</div>
`;