-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,42 @@ | ||
<cfheader statuscode="404" statustext="Not Found"> | ||
<cfheader statuscode="404" statustext="File Not Found"> | ||
<cfheader name="Connection" value="Close"> | ||
|
||
|
||
|
||
|
||
<!--- <!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>File Not Found</title> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@tabler/core@1.0.0-beta17/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">404</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> ---> | ||
<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>Page Not Found</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">404</h1> | ||
<div class="col-lg-4 mx-auto"> | ||
<p class="lead mb-4">#getTrans('txt404Text')#</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 !== "/404") { | ||
history.replaceState({}, "Page Not Found", "/404"); | ||
} | ||
</script> |