All checks were successful
release-tag / release-image (push) Successful in 2m3s
2 lines
2.0 KiB
HTML
2 lines
2.0 KiB
HTML
{{define "content"}}<h1>Releases</h1>{{if eq .User.Role "admin"}}<section class="card"><form method="post" class="form release-form"><h2>Neues Release erstellen</h2><div class="two"><label>Software<select name="software_id" required>{{range .Software}}<option value="{{.ID}}">{{.Name}}</option>{{end}}</select></label><label>Version<input name="version" required placeholder="1.2.3"></label><label>Channel<input name="channel" required placeholder="stable"></label><label>Architektur<input name="architecture" required placeholder="x86_64"></label><label>Release-Datum<input name="release_date" type="date"></label><label>Download-Link<input name="download_url" type="url" placeholder="https://..."></label><label>Release-Link<input name="release_url" type="url" placeholder="https://..."></label></div><label>Release-Informationen<textarea name="info" rows="4"></textarea></label><label>Schwachstellen, eine pro Zeile: CVE | Schweregrad | Beschreibung | Referenz<textarea name="vulnerabilities" rows="4" placeholder="CVE-2026-1234 | high | Beispiel | https://..."></textarea></label><button>Release veröffentlichen</button></form></section>{{else}}<div class="alert info">Mitarbeiter können Daten pflegen. Neue Releases dürfen nur Admins erstellen.</div>{{end}}<section class="card"><h2>Release-Historie</h2><table><thead><tr><th>Software</th><th>Version</th><th>Channel</th><th>Architektur</th><th>Schwachstellen</th><th>Links</th></tr></thead><tbody>{{range .Releases}}<tr><td>{{softwareName .SoftwareID $.Software}}</td><td><strong>{{.Version}}</strong><p class="muted">{{.ReleaseDate}}</p></td><td>{{.Channel}}</td><td>{{.Architecture}}</td><td>{{range .Vulnerabilities}}<div><strong>{{.CVE}}</strong> {{.Severity}}<br><span class="muted">{{.Description}}</span></div>{{else}}<span class="muted">Keine angegeben</span>{{end}}</td><td>{{if .ReleaseURL}}<a href="{{.ReleaseURL}}" rel="noopener noreferrer">Info</a>{{end}} {{if .DownloadURL}}<a href="{{.DownloadURL}}" rel="noopener noreferrer">Download</a>{{end}}</td></tr>{{end}}</tbody></table></section>{{end}}{{template "base" .}}
|