releases card

This commit is contained in:
2025-12-07 17:05:14 +01:00
parent fcd21a7ffa
commit b4dcc6d914
+17 -24
View File
@@ -1,30 +1,23 @@
{{define "content"}}
<h1 class="my-4">Releases for {{.Software.Title}}</h1>
<div class="table-responsive">
<table class="table table-striped table-hover table-bordered">
<thead class="bg-dark text-success">
<tr>
<th>Version</th>
<th>Released At</th>
<th>Downloads</th>
</tr>
</thead>
<tbody>
{{range .Software.Releases}}
<tr>
<td>{{.Version}}</td>
<td>{{.CreatedAt.Format "2006-01-02 15:04:05"}}</td>
<td>
<div class="btn-group" role="group" aria-label="Download options">
<a href="/download/{{$.Software.Name}}/{{.Version}}/source" class="btn btn-primary btn-sm">Source</a>
<a href="/download/{{$.Software.Name}}/{{.Version}}/cartridge" class="btn btn-primary btn-sm">Cartridge</a>
</div>
</td>
</tr>
{{end}}
</tbody>
</table>
<div class="row">
{{range .Software.Releases}}
<div class="col-12 mb-4">
<div class="card h-100">
<div class="card-body">
<h5 class="card-title">Version: {{.Version}}</h5>
<h6 class="card-subtitle mb-2 text-muted">Released At: {{.CreatedAt.Format "2006-01-02 15:04:05"}}</h6>
</div>
<div class="card-footer">
<div class="btn-group d-flex justify-content-end" role="group" aria-label="Operations">
<a href="/download/{{$.Software.Name}}/{{.Version}}/source" class="btn btn-primary btn-sm">Source</a>
<a href="/download/{{$.Software.Name}}/{{.Version}}/cartridge" class="btn btn-primary btn-sm">Cartridge</a>
</div>
</div>
</div>
</div>
{{end}}
</div>
<p><a href="/" class="btn btn-primary">Back to Softwares</a></p>