initial commit
This commit is contained in:
29
webui/views/partials/header.ejs
Normal file
29
webui/views/partials/header.ejs
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title><%= title %></title>
|
||||
<link rel="stylesheet" href="/public/styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<div class="brand">
|
||||
<span class="brand-mark">AAF</span>
|
||||
<div>
|
||||
<div class="brand-title">AAD File Shares</div>
|
||||
<div class="brand-subtitle">AD-authenticated SMB shares</div>
|
||||
</div>
|
||||
</div>
|
||||
<% if (user) { %>
|
||||
<div class="user">
|
||||
<div class="user-name"><%= user.name %></div>
|
||||
<div class="user-upn"><%= user.upn %></div>
|
||||
<a class="secondary" href="/admin">Admin</a>
|
||||
<form action="/auth/logout" method="post">
|
||||
<button class="secondary" type="submit">Sign out</button>
|
||||
</form>
|
||||
</div>
|
||||
<% } %>
|
||||
</header>
|
||||
<main class="main">
|
||||
Reference in New Issue
Block a user