forked from nm3clol/nm3clol-express-app
36 lines
1.7 KiB
Plaintext
36 lines
1.7 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>
|
|
<%- include('./includes/breadcrumbs.ejs') %>
|
|
</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') %>
|
|
<%- include('./includes/bottom-scripts.ejs') %>
|
|
</body>
|
|
</html>
|