fixed test page.

This commit is contained in:
lllllllillllllillll 2023-12-17 12:41:13 -08:00
parent 9a065a8883
commit 837c21fdb8
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
const User = require('../database/UserModel');
exports.Users = async function(req, res) {
exports.Images = async function(req, res) {
if (req.session.role == "admin") {
// Get the user.
@ -40,7 +40,7 @@ exports.Users = async function(req, res) {
});
// Render the home page
res.render("pages/users", {
res.render("pages/images", {
name: user.first_name + ' ' + user.last_name,
role: user.role,
avatar: user.avatar,

View file

@ -173,7 +173,7 @@
<div class="container-xl">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="./">
<a class="nav-link" href="/">
<span
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from https://tabler-icons.io/i/dashboard -->
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-dashboard" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 13m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path> <path d="M13.45 11.55l2.05 -2.05"></path> <path d="M6.4 20a9 9 0 1 1 11.2 0z"></path> </svg>
@ -185,7 +185,7 @@
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<a class="nav-link" href="/images">
<span
class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from https://tabler-icons.io/i/user -->
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-augmented-reality" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 8v-2a2 2 0 0 1 2 -2h2" /><path d="M4 16v2a2 2 0 0 0 2 2h2" /><path d="M16 4h2a2 2 0 0 1 2 2v2" /><path d="M16 20h2a2 2 0 0 0 2 -2v-2" /><path d="M12 12.5l4 -2.5" /><path d="M8 10l4 2.5v4.5l4 -2.5v-4.5l-4 -2.5z" /><path d="M8 10v4.5l4 2.5" /></svg>