Pass KeepForHours to index template.
This commit is contained in:
parent
d6d6c3f461
commit
efd83144c4
@ -44,6 +44,7 @@ type IndexData struct {
|
||||
StorageCapStr string
|
||||
StorageUsedStr string
|
||||
StorageAvailStr string
|
||||
KeepForHours int
|
||||
}
|
||||
|
||||
type UploadedData struct {
|
||||
@ -95,6 +96,7 @@ func (h *UploadHandlers) Index(w http.ResponseWriter, r *http.Request) {
|
||||
StorageAvailStr: availStr,
|
||||
StorageUsed: *h.uploadDirSize,
|
||||
StorageUsedStr: usedStr,
|
||||
KeepForHours: h.conf.Uploads.Limits.KeepForHours,
|
||||
}); err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
h.logErr.Fatalln("failed to execute Index template:", err)
|
||||
|
Loading…
Reference in New Issue
Block a user