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:
@@ -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> \
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user