init
All checks were successful
release-tag / release-image (push) Successful in 2m3s

This commit is contained in:
2026-05-04 22:25:50 +02:00
parent be81c2bf92
commit 270c13af5b
21 changed files with 1839 additions and 1 deletions

1
templates/software.html Normal file
View File

@@ -0,0 +1 @@
{{define "content"}}<h1>Software</h1><section class="grid"><form method="post" class="card form"><h2>Software pflegen</h2><label>Hersteller<select name="manufacturer_id" required>{{range .Manufacturers}}<option value="{{.ID}}">{{.Name}}</option>{{end}}</select></label><label>Name<input name="name" required></label><label>Homepage<input name="homepage" type="url" placeholder="https://..."></label><label>Architekturen<input name="architectures" placeholder="x86_64, arm64, windows"></label><label>Channels<input name="channels" placeholder="stable, beta, nightly"></label><label>Informationen<textarea name="description" rows="5"></textarea></label><button>Speichern</button></form><section class="card"><h2>Liste</h2><table><thead><tr><th>Hersteller</th><th>Name</th><th>Architekturen</th><th>Channels</th><th>Discord-Kanal</th><th>Homepage</th></tr></thead><tbody>{{range .Software}}<tr><td>{{manufacturerName .ManufacturerID $.Manufacturers}}</td><td><strong>{{.Name}}</strong></td><td>{{join .Architectures ", "}}</td><td>{{join .Channels ", "}}</td><td>{{if .DiscordChannelID}}<code>{{.DiscordChannelID}}</code>{{else}}<span class="muted">nicht verknüpft</span>{{end}}</td><td>{{if .Homepage}}<a href="{{.Homepage}}" rel="noopener noreferrer">Link</a>{{end}}</td></tr>{{else}}<tr><td colspan="6" class="muted">Noch keine Software angelegt.</td></tr>{{end}}</tbody></table><p class="muted">Wenn Discord aktiviert ist, wird beim Anlegen automatisch ein Kanal im Format <code>hersteller-software</code> erstellt und hier verknüpft.</p></section></section>{{end}}{{template "base" .}}