Port the web to bootstrap5
So it is responsive in phones.
This commit is contained in:
parent
8af2ad3758
commit
6a3da59c75
40 changed files with 1131 additions and 849 deletions
|
@ -92,7 +92,7 @@ func uploadPostHandler(h handler) {
|
|||
const _2M int64 = (1 << 20) * 2
|
||||
|
||||
if h.ro {
|
||||
h.sess.Notify("Upload failed!", "The library is in Read Only mode, no books can be uploaded", "error")
|
||||
h.sess.Notify("Upload failed!", "The library is in Read Only mode, no books can be uploaded", "danger")
|
||||
uploadHandler(h)
|
||||
return
|
||||
}
|
||||
|
@ -109,13 +109,13 @@ func uploadPostHandler(h handler) {
|
|||
submission := database.Submission{
|
||||
SubmissionID: submissionID,
|
||||
Filename: f.Filename,
|
||||
Status: "Waiting to be processed",
|
||||
Status: "Waiting to be processed, reload the page in few minutes",
|
||||
}
|
||||
|
||||
file, err := f.Open()
|
||||
if err != nil {
|
||||
log.Error("Can not open uploaded file ", f.Filename, ": ", err)
|
||||
h.sess.Notify("Upload problem!", "There was a problem with book "+f.Filename, "error")
|
||||
h.sess.Notify("Upload problem!", "There was a problem with book "+f.Filename, "danger")
|
||||
submission.Status = "It was not possible to read the book"
|
||||
h.db.AddSubmission(submission, h.sess.User)
|
||||
continue
|
||||
|
|
Reference in a new issue