bug fixes

This commit is contained in:
Aidan 2024-12-29 23:04:53 -06:00
parent 5ce5bb165f
commit 6665aaa047
No known key found for this signature in database
GPG Key ID: 1773A01F0EFE4FC1
3 changed files with 7 additions and 7 deletions

2
app.js
View File

@ -122,7 +122,7 @@ app.get('/request', async (req, res) => {
if (!request) { if (!request) {
return res.status(404).render('error/404'); return res.status(404).render('error/404');
} }
res.render('req-status', { request }); res.render('request', { request });
} catch (error) { } catch (error) {
console.error(error); console.error(error);
res.status(500).render('error/500'); res.status(500).render('error/500');

View File

@ -1,6 +1,6 @@
<%- include('shards/header', { title: 'Admin Dashboard - p0ntus mail' }) %> <%- include('../shards/header', { title: 'Admin Dashboard - p0ntus mail' }) %>
<div class="lg-container"> <div class="lg-container">
<%- include('shards/nav', { currentPage: 'admin' }) %> <%- include('../shards/nav', { currentPage: 'admin' }) %>
<i class="il mt-5">Dashboard</i> <i class="il mt-5">Dashboard</i>
<hr> <hr>
<table class="table"> <table class="table">
@ -47,4 +47,4 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<%- include('shards/footer') %> <%- include('../shards/footer') %>

View File

@ -1,6 +1,6 @@
<%- include('shards/header', { title: 'Admin - p0ntus mail' }) %> <%- include('../shards/header', { title: 'Admin - p0ntus mail' }) %>
<div class="container"> <div class="container">
<%- include('shards/nav', { currentPage: 'admin' }) %> <%- include('../shards/nav', { currentPage: 'admin' }) %>
<i class="il mt-5">Login to administration panel</i> <i class="il mt-5">Login to administration panel</i>
<hr> <hr>
<% if (error) { %> <% if (error) { %>
@ -18,4 +18,4 @@
<button type="submit" class="btn btn-dark mt-3">Login</button> <button type="submit" class="btn btn-dark mt-3">Login</button>
</form> </form>
</div> </div>
<%- include('shards/footer') %> <%- include('../shards/footer') %>