Toggle navigation
Toggle navigation
This project
Loading...
Sign in
万朱浩
/
Venue-Ops
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
戒酒的李白
2024-07-03 00:08:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
82fc0805b151e624c2670de1e0bf23cf6b98f5ec
82fc0805
1 parent
2d62acd7
【error.html】优化500页面,直观展示错误信息
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
40 deletions
templates/error.html
templates/error.html
View file @
82fc080
...
...
@@ -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>
<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>
<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>
<!-- 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>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment