forked from nm3clol/nm3clol-express-app
46 lines
2.3 KiB
Plaintext
46 lines
2.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Search Error for <%- query %> - <%- h.getSiteName() %></title>
|
|
<%- include('./includes/common-head.ejs') %>
|
|
</head>
|
|
<body>
|
|
<%- include('./includes/top-navbar.ejs') %>
|
|
<%- include('./includes/no-trash-svg.ejs') %>
|
|
<main class="container">
|
|
<header>
|
|
<h1 class="mt-5" style="font-family: 'Covered By Your Grace'">
|
|
<a href="/"><%=h.getSiteName()%></a>
|
|
<span class="separator">› </span>
|
|
Search Error<% if ((typeof query != undefined) && query != '') { %> for <%- query %><% } %>
|
|
</h1>
|
|
</header>
|
|
<div class="mt-3 p-3">
|
|
<p>
|
|
Disclaimer: Use of the search feature is subject to both the <a href="/search-policy">Search
|
|
Policy</a> and the <a href="/privacy-policy">Privacy Policy</a>.
|
|
</p>
|
|
</div>
|
|
<div id="searchError" class="mt-3 shadow-lg p-lg-5">
|
|
<% if (typeof error !== 'undefined') {%>
|
|
<p>An error occurred while attempting to perform a search.</p>
|
|
<% if (typeof query !== 'undefined') {%><p><b>Search Query:</b> <span id="search-query"><%= query %></span></p><% } %>
|
|
<% if (typeof error.code !== 'undefined') {%><p><b>Error Code:</b> <span id="error-code"><%= error.code %></span></p><% } %>
|
|
<% if (typeof error.message !== 'undefined') {%><p><b>Error Message:</b> <span id="error-message"><%= error.message %></span></p><% } %>
|
|
<% if (typeof error.innerError !== 'undefined' && typeof error.innerError.error !== 'undefined') { %>
|
|
<% if (typeof error.innerError.error.msg !== 'undefined') {%><p><b>Inner Error Message:</b> <span id="inner-error-message"><%- error.innerError.error.msg.replaceAll("<", "<").replaceAll(">", ">").replaceAll("\n", '<br>') %></span></p><% } %>
|
|
<% } %>
|
|
<% } %>
|
|
</div>
|
|
|
|
<%- include('./includes/bottom-navbar.ejs') %>
|
|
|
|
<!-- Bootstrap JS (optional, if you need Bootstrap JS features) -->
|
|
<script src="https://daball.me/vendor/jquery/jquery.min.js"></script>
|
|
<script src="https://daball.me/vendor/popper.js/dist/popper.min.js"></script>
|
|
<script src="https://daball.me/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://daball.me/vendor/jquery-easing/jquery.easing.min.js"></script>
|
|
<script src="https://daball.me/layouts/blog/js/blog.min.js"></script>
|
|
</body>
|
|
</html>
|