Removed nospace.jade. Replaced by errorXXX.jade.
This commit is contained in:
parent
6b56037ded
commit
266cf9dbb0
@ -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") {
|
||||
http.Error(w, "Not enough space left, sorry", http.StatusInternalServerError)
|
||||
} else {
|
||||
web.ErrorNoSpace(utils.MainSite(r.Host), w)
|
||||
web.ErrorXXX(utils.MainSite(r.Host), http.StatusInternalServerError, "Not enough space left, sorry.", w)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -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
|
@ -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/nospace.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/errorXXX.jade
|
||||
|
Loading…
Reference in New Issue
Block a user