1
0

Removed nospace.jade. Replaced by errorXXX.jade.

This commit is contained in:
Alexander Andreev 2023-08-05 04:22:27 +04:00
parent 6b56037ded
commit 266cf9dbb0
Signed by: Arav
GPG Key ID: D22A817D95815393
3 changed files with 1 additions and 24 deletions

View File

@ -82,7 +82,7 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) {
if strings.Contains(r.UserAgent(), "curl") || strings.Contains(r.UserAgent(), "Wget") { if strings.Contains(r.UserAgent(), "curl") || strings.Contains(r.UserAgent(), "Wget") {
http.Error(w, "Not enough space left, sorry", http.StatusInternalServerError) http.Error(w, "Not enough space left, sorry", http.StatusInternalServerError)
} else { } else {
web.ErrorNoSpace(utils.MainSite(r.Host), w) web.ErrorXXX(utils.MainSite(r.Host), http.StatusInternalServerError, "Not enough space left, sorry.", w)
} }
return return
} }

View File

@ -1,22 +0,0 @@
extends base.jade
block head
:go:func ErrorNoSpace(mainSite string)
style(type="text/css").
#error {
font-size: 3.5rem;
line-height: 5rem;
text-align: center;
margin: 6rem 0; }
#error h1 { font-size: 6rem; }
block header
h1 :(
block body
- wr.(http.ResponseWriter).WriteHeader(http.StatusInternalServerError)
section#error
h1 Not enough space left
center
a(href="/") Back to index page

View File

@ -7,7 +7,6 @@ import (
) )
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/index.jade //go:generate $GOPATH/bin/jade -pkg=web -writer templates/index.jade
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/nospace.jade
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/deleted.jade //go:generate $GOPATH/bin/jade -pkg=web -writer templates/deleted.jade
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/uploaded.jade //go:generate $GOPATH/bin/jade -pkg=web -writer templates/uploaded.jade
//go:generate $GOPATH/bin/jade -pkg=web -writer templates/errorXXX.jade //go:generate $GOPATH/bin/jade -pkg=web -writer templates/errorXXX.jade