Skip to content

Commit

Permalink
Susimail: Put error messages at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzi2p committed Dec 23, 2023
1 parent 0b88668 commit 394a2b1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/susimail/src/src/i2p/susi/webmail/WebMail.java
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,11 @@ private void processRequest( HttpServletRequest httpRequest, HttpServletResponse
}
}
if (showRefresh || sessionObject.error.length() > 0 || sessionObject.info.length() > 0) {
out.println("<div class=\"notifications\">");
out.print("<div class=\"notifications\"");
// if errors, put at the top
if (sessionObject.error.length() > 0)
out.print(" id=\"errornotifications\"");
out.println(">");
if (sessionObject.error.length() > 0)
out.println("<p class=\"error\">" + quoteHTML(sessionObject.error).replace("\n", "<br>") + "</p>");
if (sessionObject.info.length() > 0 || showRefresh) {
Expand Down
4 changes: 4 additions & 0 deletions apps/susimail/src/themes/dark/susimail.css
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,10 @@ input[type="submit"], input[type="reset"], select, button { /* webkit/blink fix

/* login + misc mods */

#errornotifications {
position: static;
}

.notifications {
text-align: center;
padding: 0 0 20px;
Expand Down
4 changes: 4 additions & 0 deletions apps/susimail/src/themes/light/susimail.css
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,10 @@ tr.bottombuttons:empty {
box-shadow: none !important;
}

#errornotifications {
position: static;
}

.notifications {
bottom: 0;
left: 0;
Expand Down

0 comments on commit 394a2b1

Please sign in to comment.