fix styling on some pages

This commit is contained in:
2026-03-26 16:14:13 +01:00
parent b0d1f17540
commit afcb4d72f5
5 changed files with 302 additions and 143 deletions

View File

@@ -111,7 +111,7 @@ func (h *Handler) View(c *gin.Context) {
record, err := h.service.DownloadFile(id)
if err != nil {
c.HTML(http.StatusOK, "fileNotFound.html", nil)
c.HTML(http.StatusOK, "error.html", nil)
return
}
name := util.SafeFilename(record.Filename)
@@ -135,7 +135,7 @@ func (h *Handler) Download(c *gin.Context) {
record, err := h.service.DownloadFile(id)
if err != nil {
c.HTML(http.StatusOK, "fileNotFound.html", nil)
c.HTML(http.StatusOK, "error.html", nil)
return
}
name := util.SafeFilename(record.Filename)
@@ -151,7 +151,7 @@ func (h *Handler) Delete(c *gin.Context) {
_, err := h.service.DeleteFileByDeletionID(id)
if err != nil {
c.HTML(http.StatusOK, "fileNotFound.html", nil)
c.HTML(http.StatusOK, "error.html", nil)
return
}