Commit 76e5fd8933cf722ee29f7e5f9339b3ae4603d53e

Authored by Adhidarma Hadiwinoto
1 parent f23855ee46
Exists in master

HANDLER NAME on control panel

Showing 3 changed files with 7 additions and 4 deletions Side-by-side Diff

lib/control-panel/index.js
... ... @@ -41,6 +41,7 @@ function validateSession(req, res, next) {
41 41 }
42 42  
43 43 app.use((req, res, next) => {
  44 + res.locals.handler_name = config.handler_name;
44 45 res.locals.xid = uniqid();
45 46 next();
46 47 });
lib/control-panel/views/signin.njk
... ... @@ -6,7 +6,7 @@
6 6 <meta name="description" content="">
7 7 <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
8 8 <meta name="generator" content="Jekyll v4.0.1">
9   - <title>Signin Template · Bootstrap</title>
  9 + <title>Manajemen Kuota - {{ handler_name }}</title>
10 10  
11 11 <link rel="canonical" href="https://getbootstrap.com/docs/4.5/examples/sign-in/">
12 12  
... ... @@ -46,13 +46,13 @@
46 46 <body class="text-center">
47 47 <form class="form-signin" method="POST">
48 48 {# <img class="mb-4" src="/vendors/bootstrap/4.5/assets/brand/bootstrap-solid.svg" alt="" width="72" height="72"> #}
49   - <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
  49 + <h1 class="h3 mb-3 font-weight-normal">Manajemen Kuota {{ handler_name }}</h1>
50 50 <label for="inputUsername" class="sr-only">Username</label>
51 51 <input name="username" type="text" id="inputUsername" class="form-control" placeholder="Your username" required autofocus>
52 52 <label for="inputPassword" class="sr-only">Password</label>
53 53 <input name="password" type="password" id="inputPassword" class="form-control" placeholder="Password" required>
54 54 <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
55   - <p class="mt-5 mb-3 text-muted">&copy; 2020</p>
  55 + <p class="mt-5 mb-3 text-muted">&copy; PT. TEKNOLOGI TRANSAKSI DIGITAL (TEKTRANS) 2020</p>
56 56 </form>
57 57 </body>
58 58 </html>
lib/control-panel/views/template.sbadmin2.njk
... ... @@ -9,7 +9,7 @@
9 9 <meta name="description" content="">
10 10 <meta name="author" content="">
11 11  
12   - <title>{{ pageTitle }} - Manajemen Kuota</title>
  12 + <title>{{ pageTitle }} - Manajemen Kuota {{ handler_name }}</title>
13 13  
14 14 <!-- Custom fonts for this template-->
15 15 <link href="/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
... ... @@ -70,6 +70,8 @@
70 70 <i class="fa fa-bars"></i>
71 71 </button>
72 72  
  73 + <h1>{{ handler_name }}</h1>
  74 +
73 75 {# <!-- Topbar Search -->
74 76 <form class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
75 77 <div class="input-group">