diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index 61d3a06..852bbee 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -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)