Skip to content

Commit

Permalink
Merge pull request #592 from PAWECOGmbH/development
Browse files Browse the repository at this point in the history
Insert correct code
  • Loading branch information
ptruessel authored Dec 19, 2024
2 parents 2b2ed02 + 74b1ca0 commit 9ebe52a
Showing 1 changed file with 42 additions and 45 deletions.
87 changes: 42 additions & 45 deletions www/frontend/custom_theme/templates/error/error.cfm
Original file line number Diff line number Diff line change
@@ -1,45 +1,42 @@
<!doctype html>
<html>
<cfoutput>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>Error</title>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/css/tabler.min.css" />
</head>

<cfparam name="darkTheme" default="">

<cfif getLayout.layoutBody neq "">
<cfset darkTheme = "theme-dark">
</cfif>

<body class="d-flex flex-column #darkTheme#">
<div class="page page-center">
<div class="container-tight py-4">
<div class="empty">
<div class="empty-header">500</div>
<p class="empty-title">Oops…</p>

<p class="empty-subtitle text-muted">
#application.objLanguage.getTrans('txtTechInform')#
</p>

<div class="empty-action">
<cfif structKeyExists(session, "customer_id")>
<a href="./dashboard" class="btn btn-primary">
#application.objLanguage.getTrans('txtTakeBack')#
</a>
<cfelse>
<a href="./" class="btn btn-primary">
#application.objLanguage.getTrans('txtTakeBack')#
</a>
</cfif>
</div>
</div>
</div>
</div>
</body>
</cfoutput>
</html>
<cfheader statuscode="500" statustext="Error">
<cfheader name="Connection" value="Close">

<cfif structKeyExists(session, "customer_id")>
<cfset takeMeBackURL = "/dashboard">
<cfelse>
<cfset takeMeBackURL = application.mainURL>
</cfif>

<!DOCTYPE html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Error</title>
<cfinclude template="../../css/css-include.cfm">
</head>

<body>

<cfoutput>
<div class="px-4 py-5 my-5 text-center">
<h1 class="display-5 fw-bold text-body-emphasis mb-4">500</h1>
<div class="col-lg-4 mx-auto">
<p class="lead mb-4">#getTrans('txtTechInform')#</p>
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center">
<a href="#takeMeBackURL#" type="button" class="btn btn-secondary btn-lg px-4 gap-3">#getTrans('txtTakeBack')#</a>
</div>
</div>
</div>
</cfoutput>

</body>

</body>
</html>


<script>
if (window.location.pathname !== "/error") {
history.replaceState({}, "Error!", "/error");
}
</script>

0 comments on commit 9ebe52a

Please sign in to comment.