lllllllillllllillll преди 1 година
родител
ревизия
837c21fdb8
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      controllers/images.js
  2. 2 2
      views/partials/navbar.ejs

+ 2 - 2
controllers/images.js

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

+ 2 - 2
views/partials/navbar.ejs

@@ -173,7 +173,7 @@
       <div class="container-xl">
       <div class="container-xl">
         <ul class="navbar-nav">
         <ul class="navbar-nav">
           <li class="nav-item">
           <li class="nav-item">
-            <a class="nav-link" href="./">
+            <a class="nav-link" href="/">
               <span
               <span
                 class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from https://tabler-icons.io/i/dashboard -->
                 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>
                 <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>
 
 
           <li class="nav-item">
           <li class="nav-item">
-            <a class="nav-link" href="#">
+            <a class="nav-link" href="/images">
               <span
               <span
                 class="nav-link-icon d-md-none d-lg-inline-block"><!-- Download SVG icon from https://tabler-icons.io/i/user -->
                 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>
                 <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>