Some checks failed
🚀 Build & Deploy Image / Determine Build Necessity (push) Failing after 10m14s
🚀 Build & Deploy Image / Build Runtime Base Image (push) Has been skipped
🚀 Build & Deploy Image / Build Docker Image (push) Has been skipped
🚀 Build & Deploy Image / Run Tests & Quality Checks (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Staging (push) Has been skipped
🚀 Build & Deploy Image / Auto-deploy to Production (push) Has been skipped
Security Vulnerability Scan / Check for Dependency Changes (push) Failing after 11m25s
Security Vulnerability Scan / Composer Security Audit (push) Has been cancelled
- Remove middleware reference from Gitea Traefik labels (caused routing issues) - Optimize Gitea connection pool settings (MAX_IDLE_CONNS=30, authentication_timeout=180s) - Add explicit service reference in Traefik labels - Fix intermittent 504 timeouts by improving PostgreSQL connection handling Fixes Gitea unreachability via git.michaelschiemer.de
55 lines
2.4 KiB
PHP
55 lines
2.4 KiB
PHP
<layout name="admin" />
|
|
|
|
<div class="section">
|
|
<h2>{{$title}}</h2>
|
|
|
|
<div class="admin-card">
|
|
<div class="admin-card__header">
|
|
<h3 class="admin-card__title">Existing Image Slots</h3>
|
|
</div>
|
|
<div class="admin-card__content">
|
|
<div class="admin-table-wrapper" if="{{$slots}}">
|
|
<table class="admin-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Slot Name</th>
|
|
<th>Current Image</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr foreach="$slots as $slot">
|
|
<td>{{$slot->slotName}}</td>
|
|
<td>
|
|
<span if="{{$slot->image}}">{{$slot->image->filename}}</span>
|
|
<span style="color: var(--muted);" if="{{!$slot->image}}">No image assigned</span>
|
|
</td>
|
|
<td class="admin-table__actions">
|
|
<form action="/admin/content/image-slots/{{$slot->slotName}}" method="post" style="display: inline;">
|
|
<button type="submit" class="admin-table__action">Edit</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p style="color: var(--muted); text-align: center; padding: var(--space-lg);" if="{{!$slots}}">No image slots created yet.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="admin-card" style="margin-top: var(--space-lg);">
|
|
<div class="admin-card__header">
|
|
<h3 class="admin-card__title">Create New Image Slot</h3>
|
|
</div>
|
|
<div class="admin-card__content">
|
|
<form action="/admin/imageslots/create" method="post">
|
|
<div style="margin-bottom: var(--space-md);">
|
|
<label for="slotName" style="display: block; margin-bottom: var(--space-sm); font-weight: 500;">Slot Name:</label>
|
|
<input type="text" id="slotName" name="slotName" class="admin-input" placeholder="Enter slot name..." required />
|
|
</div>
|
|
<button type="submit" class="admin-button">Create Image Slot</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|