Added page titles to server webUI
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<%- include('partials/htmlHead.ejs') %>
|
||||
<%- include('partials/htmlHead.ejs', {'page': page}) %>
|
||||
<div class="container">
|
||||
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-4">
|
||||
<div class="col-xl-3 col-lg-6">
|
||||
|
||||
@@ -1,7 +1,20 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Bootstrap demo</title>
|
||||
<% switch (page) {
|
||||
case "index":%>
|
||||
<title>Node Dashboard</title>
|
||||
<% break;
|
||||
case "controller":%>
|
||||
<title>Node Controller</title>
|
||||
<% break;
|
||||
case "node":%>
|
||||
<title>Node Configuration</title>
|
||||
<% break;
|
||||
default:%>
|
||||
<title>DRB_CnC Server</title>
|
||||
<%break;
|
||||
} %>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!doctype html>
|
||||
<html lang="en" data-bs-theme="auto">
|
||||
<%- include('head.ejs') %>
|
||||
<%- include('head.ejs', {'page': page}) %>
|
||||
<body>
|
||||
<%- include('navbar.ejs') %>
|
||||
<%- include('sidebar.ejs') %>
|
||||
Reference in New Issue
Block a user