fix styling on some pages
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user