Improve the server error template appearance

Add a red alert for faster visual scanning. Place the
status code output in the same line as the initial message to
save some vertical space for debug output.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-21 23:44:19 -04:00
parent 79cba7abe1
commit 5623f0b3a4
@@ -170,8 +170,7 @@ class PartialNavigation {
$('#ajax-content').html(
' \
<h4>Server Error</h4> \
<p>Status code: ' + jqXHR.status + '</p> \
<div class="alert alert-danger" role="alert"><i class="fa fa-exclamation-triangle"></i> Server Error, status code: ' + jqXHR.status + '</div> \
<pre class="pre-server-error"><code>' + errorMessage +'</code> \
</pre> \
'