forked from ALHP/ALHP.GO
added queued packages to footer
This commit is contained in:
3
main.go
3
main.go
@@ -340,6 +340,7 @@ func (b *BuildManager) htmlWorker() {
|
|||||||
Latest int
|
Latest int
|
||||||
Failed int
|
Failed int
|
||||||
Skipped int
|
Skipped int
|
||||||
|
Queued int
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
@@ -419,6 +420,8 @@ func (b *BuildManager) htmlWorker() {
|
|||||||
gen.Skipped = c.Count
|
gen.Skipped = c.Count
|
||||||
case dbpackage.StatusLatest:
|
case dbpackage.StatusLatest:
|
||||||
gen.Latest = c.Count
|
gen.Latest = c.Count
|
||||||
|
case dbpackage.StatusQueued:
|
||||||
|
gen.Queued = c.Count
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -111,7 +111,8 @@
|
|||||||
|
|
||||||
<footer class="text-center text-lg-start bg-dark mt-3 fixed-bottom">
|
<footer class="text-center text-lg-start bg-dark mt-3 fixed-bottom">
|
||||||
<div class="p-2 text-center">
|
<div class="p-2 text-center">
|
||||||
{{.Latest}} <span class="text-primary">build</span> {{.Skipped}} <span
|
{{.Latest}} <span class="text-primary">build</span> {{.Queued}} <span class="text-secondary">queued</span>
|
||||||
|
{{.Skipped}} <span
|
||||||
class="text-secondary">skipped</span> {{.Failed}} <span class="text-danger">failed</span> || <span
|
class="text-secondary">skipped</span> {{.Failed}} <span class="text-danger">failed</span> || <span
|
||||||
class="text-muted">{{.Generated}}</span>
|
class="text-muted">{{.Generated}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user