Skip to content

Commit 1daafea

Browse files
committed
Overlay 400 error templates - copy as of 6.2.x
1 parent 2f7ba1d commit 1daafea

5 files changed

Lines changed: 118 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
8+
9+
<title th:text="#{screen.error.page.title.accessdenied}">Error - 401</title>
10+
<link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
11+
</head>
12+
13+
<body>
14+
<main role="main" class="container mt-3 mb-3">
15+
<div layout:fragment="content" class="mdc-card p-4 w-lg-66 m-auto">
16+
<h2 th:utext="#{screen.error.page.accessdenied}">Access Denied</h2>
17+
<p th:utext="#{screen.error.page.permissiondenied}">You do not have permission to view this page.</p>
18+
<a class="mdc-button mdc-button-raised" th:href="@{/login}">
19+
<span class="mdc-button__label" th:utext="#{screen.error.page.loginagain}">Login Again</span>
20+
</a>
21+
</div>
22+
</main>
23+
</body>
24+
</html>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
8+
9+
<title th:text="#{screen.error.page.title.permissiondenied}">Error - Permission Denied</title>
10+
<link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
11+
</head>
12+
13+
<body>
14+
<main role="main" class="container mt-3 mb-3">
15+
<div layout:fragment="content" class="mdc-card p-4 w-lg-66 m-auto">
16+
<h2 th:utext="#{screen.error.page.authdenied}">Authorization Denied</h2>
17+
<p th:utext="#{screen.error.page.permissiondenied}">You do not have permission to view this page.</p>
18+
<a class="mdc-button" th:href="@{/login}">
19+
<span class="mdc-button__label" th:utext="#{screen.error.page.loginagain}">Login Again</span>
20+
</a>
21+
</div>
22+
</main>
23+
</body>
24+
</html>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
8+
9+
<title th:text="#{screen.error.page.title.pagenotfound}">Error - Page Not Found</title>
10+
<link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
11+
</head>
12+
13+
<body>
14+
<main role="main" class="container mt-3 mb-3">
15+
<div layout:fragment="content" class="mdc-card p-4 w-lg-66 m-auto">
16+
<h2 th:utext="#{screen.error.page.notfound}">Page Not Found</h2>
17+
<p th:utext="#{screen.error.page.doesnotexist}">The page you are attempting to access does not exist at the
18+
moment.</p>
19+
<a class="mdc-button" th:href="@{/login}">
20+
<span class="mdc-button__label" th:utext="#{screen.error.page.loginagain}">Login Again</span>
21+
</a>
22+
</div>
23+
</main>
24+
</body>
25+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
8+
9+
<title th:text="#{screen.error.page.title.requestunsupported}">Error - Unsupported Request</title>
10+
<link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
11+
</head>
12+
13+
<body>
14+
<main role="main" class="container mt-3 mb-3">
15+
<div layout:fragment="content" class="mdc-card p-4 w-lg-66 m-auto">
16+
<h2 th:utext="#{screen.error.page.requestunsupported}">The request type or syntax is not supported.</h2>
17+
<p th:utext="#{screen.error.page.permissiondenied}">You do not have permission to view this page.</p>
18+
<a class="mdc-button" th:href="@{/login}">
19+
<span class="mdc-button__label" th:utext="#{screen.error.page.loginagain}">Login Again</span>
20+
</a>
21+
</div>
22+
</body>
23+
</html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
8+
9+
<title th:text="#{screen.error.page.title.blocked}">Error - Permission Denied</title>
10+
<link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
11+
</head>
12+
13+
<body>
14+
<main role="main" class="container mt-3 mb-3">
15+
<div layout:fragment="content" class="mdc-card p-4 w-lg-66 m-auto">
16+
<h2 th:utext="#{screen.blocked.header}">Access Denied</h2>
17+
<p th:utext="#{screen.blocked.message}">You've entered the wrong password for the user too many times.
18+
You've been throttled.</p>
19+
</div>
20+
</main>
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)