This commit is contained in:
1
templates/dashboard.html
Normal file
1
templates/dashboard.html
Normal file
@@ -0,0 +1 @@
|
||||
{{define "content"}}<h1>Dashboard</h1><div class="stats"><div class="stat"><strong>{{.ManufacturerCount}}</strong><span>Hersteller</span></div><div class="stat"><strong>{{.SoftwareCount}}</strong><span>Software</span></div><div class="stat"><strong>{{.ReleaseCount}}</strong><span>Releases</span></div></div><section class="card"><h2>Letzte Releases</h2>{{if .Releases}}<table><thead><tr><th>Software</th><th>Version</th><th>Channel</th><th>Architektur</th><th>Datum</th><th>Links</th></tr></thead><tbody>{{range .Releases}}<tr><td>{{softwareName .SoftwareID $.Software}}</td><td><strong>{{.Version}}</strong></td><td>{{.Channel}}</td><td>{{.Architecture}}</td><td>{{.ReleaseDate}}</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>{{else}}<p class="muted">Noch keine Releases vorhanden.</p>{{end}}</section>{{end}}{{template "base" .}}
|
||||
Reference in New Issue
Block a user