[BO] FO 의 에러페이지로 적용, FO Local Message 수정
This commit is contained in:
@@ -1,35 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html layout:decorate="~{layout/layout-error}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:sec="http://www.w3.org/1999/xhtml"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
xmlns:th="http://www.thymeleaf.org" lang="ko">
|
||||
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
<title>403</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<section layout:fragment="content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="p-5 mb-4 bg-light rounded-3">
|
||||
<div class="container-fluid py-5">
|
||||
<h1 class="display-5 fw-bold"><i class="bi bi-shield-shaded"></i>
|
||||
Oops, 403 Forbidden :-(</h1>
|
||||
<p class="col-md-8 fs-4">
|
||||
<span th:text="${message}"></span> <br/>
|
||||
<div layout:fragment="content" th:classappend="error-wrap">
|
||||
<main id="content" role="main">
|
||||
<div class="info-msg">
|
||||
<strong th:text="${message}"></strong>
|
||||
<span class="text-muted" sec:authentication="name"></span> 님이 가진 권한 (<span
|
||||
class="text-muted" sec:authentication="principal.authorities"></span>)으로 이용할 수 없는
|
||||
class="text-muted" sec:authentication="principal.authorities"></span>)으로 이용할 수 없는
|
||||
기능입니다.
|
||||
</p>
|
||||
<button class="btn btn-primary btn-lg" onclick="location.href='/'" type="button">홈으로 이동
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="btns">
|
||||
<button type="button" class="fill" onclick="location.href='/'">홈으로 이동</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@@ -1,37 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html layout:decorate="~{layout/layout-error}"
|
||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.w3.org/1999/xhtml">
|
||||
<html layout:decorate="~{layout/layout-error}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.thymeleaf.org" lang="ko">
|
||||
|
||||
<head>
|
||||
<title>404</title>
|
||||
<title>404</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<section layout:fragment="content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="p-5 mb-4 bg-light rounded-3">
|
||||
<div class="container-fluid py-5">
|
||||
<h1 class="display-5 fw-bold"><i class="bi bi-eye-slash-fill"></i>
|
||||
Oops, 404 Not Found :-(</h1>
|
||||
<p class="col-md-8 fs-4">
|
||||
존재하지 않는 URI 주소 혹은 페이지가 없는 주소로 접근했습니다. 다시 확인해주세요.
|
||||
</p>
|
||||
<p class="col-md-8 fs-5">
|
||||
<span>Error</span> <span class="text-muted" th:text="${error}"></span>
|
||||
<br/>
|
||||
<span>Message</span> <span class="text-muted" th:text="${message}"></span>
|
||||
</p>
|
||||
<button class="btn btn-primary btn-lg" onclick="location.href='/'" type="button">홈으로 이동
|
||||
</button>
|
||||
<div layout:fragment="content" th:classappend="error-wrap">
|
||||
<main id="content" role="main">
|
||||
<div class="info-msg">
|
||||
<strong>요청하신 페이지를<br>
|
||||
찾을 수 없습니다</strong>
|
||||
<span>페이지를 찾을 수 없습니다.<br>
|
||||
일계부 첫 화면으로 이동해 주세요.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="btns">
|
||||
<button type="button" class="fill" onclick="location.href='/'">홈으로 이동</button>
|
||||
</div>
|
||||
</main>
|
||||
<th:block th:if="${@systemProperties['spring.profiles.active'] eq 'local'}">
|
||||
<div class="info-msg">
|
||||
<span class="text-muted" th:text="${error}"></span>
|
||||
<span class="text-muted" th:text="${message}"></span>
|
||||
</div>
|
||||
</th:block>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1,43 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html layout:decorate="~{layout/layout-error}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
xmlns:th="http://www.thymeleaf.org" lang="ko">
|
||||
|
||||
<head>
|
||||
<title>500 - 에러발생</title>
|
||||
<title>500</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<section layout:fragment="content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="p-5 mb-4 bg-light rounded-3">
|
||||
<div class="container-fluid py-5">
|
||||
<h1 class="display-5 fw-bold"><i class="bi bi-cone-striped"></i>
|
||||
Oops, <span class="text-muted">에러가 발생했습니다!</span> :-(</h1>
|
||||
<p class="col-md-8 fs-4">
|
||||
아래 에러 메세지를 담당자에게 전달해주세요.
|
||||
</p>
|
||||
<p class="col-md-8 fs-5">
|
||||
<span>Error</span> <span class="text-muted" th:text="${error}"></span>
|
||||
<br/>
|
||||
<span>Message</span> <span class="text-muted" th:text="${message}"></span>
|
||||
<!-- <br/>-->
|
||||
<!-- <span>Status</span> <span th:text="${status}" class="text-muted"></span>-->
|
||||
<!-- <br/>-->
|
||||
<!-- <span>Path</span> <span th:text="${path}" class="text-muted"></span>-->
|
||||
<!-- <br/>-->
|
||||
<!-- <span>Timestamp</span> <span th:text="${timestamp}" class="text-muted"></span>-->
|
||||
</p>
|
||||
<hr>
|
||||
<button class="btn btn-primary btn-lg" onclick="history.go(-1)" type="button">이전으로 이동
|
||||
</button>
|
||||
<div layout:fragment="content" th:classappend="error-wrap">
|
||||
<main id="content" role="main">
|
||||
<div class="info-msg">
|
||||
<strong>요청하신 작업을<br> 완료할 수 없습니다.</strong>
|
||||
<span>서비스 이용 중 문제가 발생했습니다.<br>
|
||||
잠시 후 다시 시도해 주세요.</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="btns">
|
||||
<button type="button" class="fill" onclick="history.go(-1)">이전으로 이동</button>
|
||||
</div>
|
||||
</main>
|
||||
<th:block th:if="${@systemProperties['spring.profiles.active'] eq 'local'}">
|
||||
<div class="info-msg">
|
||||
<span class="text-muted" th:text="${error}"></span>
|
||||
<span class="text-muted" th:text="${message}"></span>
|
||||
</div>
|
||||
</th:block>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@@ -1,21 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
|
||||
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org" lang="ko">
|
||||
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
|
||||
<meta charset="utf-8" />
|
||||
<title>Error | KRI 임가경제조사 BackOffice</title>
|
||||
<meta name="keywords" content="" />
|
||||
<meta name="description" content="" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:site_name" content="" />
|
||||
<meta property="og:title" content="" />
|
||||
<meta property="og:description" content="" />
|
||||
<meta property="og:image" content="pathImages/" />
|
||||
<link rel="icon" type="image/x-icon" href="pathImages/" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="pathImages/" />
|
||||
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />
|
||||
<link rel="preload" as="font" type="font/woff2" crossorigin href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/PretendardVariable.woff2" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css" />
|
||||
<style>
|
||||
* {margin: 0; padding: 0;}
|
||||
body, html {height: 100%; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;}
|
||||
#wrap {height: 100%;}
|
||||
.error-wrap {padding-top: 120px;}
|
||||
.error-wrap main {display: flex; flex-direction: column; width: 310px; margin: 0 auto; padding-top: 88px; background:url('../../assets/images/common/ico_nodata.svg') center top / 64px no-repeat;}
|
||||
.info-msg {display: flex; flex-direction: column; align-items: center;}
|
||||
.info-msg strong {display: block; font-size: 24px; font-weight: 700; color: #212529; line-height: 140%; text-align: center;}
|
||||
.info-msg span {display: block; margin-top: 8px; font-size: 15px; font-weight: 400; color: #495057; line-height: 140%; text-align: center;}
|
||||
.btns {display: flex; gap: 8px; margin-top: 32px;}
|
||||
.btns button {flex: 1; display: inline-block; height: 52px; font-size: 18px; font-weight: 600; border-radius: 8px;}
|
||||
.btns .strock {color: #4BBC43; border: 1px solid #4BBC43; background: #ffffff;}
|
||||
.btns .fill {color: #ffffff; border: 0; background: #4BBC43;}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<section layout:fragment="content">
|
||||
<p>Page content goes here</p>
|
||||
</section>
|
||||
|
||||
<div class="container">
|
||||
<footer class="py-3 my-4 border-top">
|
||||
<div class="text-center">
|
||||
<span class="text-muted">© 2022 All rights reserved</span>
|
||||
<div id="wrap">
|
||||
<div id="container" layout:fragment="content">
|
||||
page content
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -21,9 +21,8 @@
|
||||
</main>
|
||||
<th:block th:if="${@systemProperties['spring.profiles.active'] eq 'local'}">
|
||||
<div class="info-msg">
|
||||
<span>Error</span> <span class="text-muted" th:text="${error}"></span>
|
||||
<br/>
|
||||
<span>Message</span> <span class="text-muted" th:text="${message}"></span>
|
||||
<span class="text-muted" th:text="${error}"></span>
|
||||
<span class="text-muted" th:text="${message}"></span>
|
||||
</div>
|
||||
</th:block>
|
||||
</div>
|
||||
|
||||
@@ -21,9 +21,8 @@
|
||||
</main>
|
||||
<th:block th:if="${@systemProperties['spring.profiles.active'] eq 'local'}">
|
||||
<div class="info-msg">
|
||||
<span>Error</span> <span class="text-muted" th:text="${error}"></span>
|
||||
<br/>
|
||||
<span>Message</span> <span class="text-muted" th:text="${message}"></span>
|
||||
<span class="text-muted" th:text="${error}"></span>
|
||||
<span class="text-muted" th:text="${message}"></span>
|
||||
</div>
|
||||
</th:block>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user