【error.html】优化500页面,直观展示错误信息
This commit is contained in:
+27
-41
@@ -2,46 +2,32 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Error Page</title>
|
||||
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
||||
<style>
|
||||
body {
|
||||
background-color: #f8f9fa;
|
||||
color: #343a40;
|
||||
}
|
||||
.container {
|
||||
margin-top: 10%;
|
||||
}
|
||||
.error-image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.error-msg {
|
||||
font-size: 1.5rem;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.btn-custom {
|
||||
background-color: #6c757d;
|
||||
color: #fff;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.btn-custom:hover {
|
||||
background-color: #5a6268;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container text-center">
|
||||
<img src="/static/picture/maintenance.png" class="error-image" alt="Maintenance Image">
|
||||
<div class="error-msg">{{ errorMsg }}</div>
|
||||
<p>Please go back, check the issue, and fix it.</p>
|
||||
<a href="/user/login" class="btn btn-custom">Return to Login Page</a>
|
||||
</div>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>错误页面</title>
|
||||
|
||||
<link rel="stylesheet" href="/static/css/backend-plugin.min.css">
|
||||
<link rel="stylesheet" href="/static/css/backend.css"> </head>
|
||||
<body class=" ">
|
||||
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="mt-5 iq-maintenance">
|
||||
<div class="container-fluid p-0">
|
||||
<div class="row no-gutters">
|
||||
<div class="col-sm-12 text-center">
|
||||
<div class="iq-maintenance">
|
||||
<img src="/static/picture/maintenance.png" class="img-fluid" alt="">
|
||||
<h3 class="mt-4 mb-2">{{ errorMsg }}</h3>
|
||||
<p class="mb-2">请回去再次检查问题并且修改问题.</p>
|
||||
<p><a href="/user/login" class="btn btn-primary">回到登录页</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Backend Bundle JavaScript -->
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user