Bilingual support, with full system support for Chinese and English switching.
This commit is contained in:
+57
-32
@@ -1,33 +1,58 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<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 -->
|
||||
|
||||
</body>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ error_code }} - {{ error_title }}</title>
|
||||
<link rel="stylesheet" href="/static/css/backend.css">
|
||||
<!-- 添加语言支持脚本 -->
|
||||
<script src="/static/js/i18n.js"></script>
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
background-color: #f8f9fa;
|
||||
}
|
||||
.error-container {
|
||||
text-align: center;
|
||||
padding: 2rem;
|
||||
}
|
||||
.error-code {
|
||||
font-size: 6rem;
|
||||
font-weight: bold;
|
||||
color: #dc3545;
|
||||
}
|
||||
.error-message {
|
||||
font-size: 1.5rem;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
.back-link {
|
||||
display: inline-block;
|
||||
margin-top: 1rem;
|
||||
padding: 0.5rem 1rem;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-container">
|
||||
<div class="error-code">{{ error_code }}</div>
|
||||
<div class="error-message" data-i18n="{{ error_i18n_key }}">{{ error_title }}</div>
|
||||
<p>{{ error_message }}</p>
|
||||
<a href="/" class="back-link" data-i18n="backToHome">返回首页</a>
|
||||
</div>
|
||||
|
||||
<!-- 初始化语言支持 -->
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
applyTranslations();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user