+ Adding back proper breadcrumbs to the navbar
This commit is contained in:
parent
2a0b6f616c
commit
03491a6396
84
api/templates/admin.html.tera
Normal file
84
api/templates/admin.html.tera
Normal file
@ -0,0 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
||||
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
|
||||
<title>Clippable Admin Dashboard</title>
|
||||
<link rel="shortcut icon" type="image/png" href="/static/favicon.png"/>
|
||||
|
||||
<!-- This script basically just provides some convenience to -->
|
||||
<!-- pre-populate the requests that an admin might make -->
|
||||
<script src="/static/js/admin.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<a style="bread-crumb-item text-transform: capitalize" class="navbar-brand" href="/">
|
||||
<img src="/static/favicon.png" class="rounded" width="50" height="50">
|
||||
</a>
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="/">Home</a>
|
||||
</li>
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
<div class="content" id="login-display">
|
||||
<h2>Login to Instance</h2>
|
||||
<form class="form-inline login-form">
|
||||
<div class="input-group mb-2">
|
||||
<input type="password" id="uid" class="form-control mx-sm-3" placeholder="UID code">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="checkbox" onclick="toggle_visible('uid')">
|
||||
<label class="form-check-label" for="showuid">Show uid</label>
|
||||
</div> </div>
|
||||
<div class="input-group mb-2">
|
||||
<input type="password" id="apikey" class="form-control mx-sm-3" placeholder="API Key">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="checkbox" onclick="toggle_visible('apikey')">
|
||||
<label class="form-check-label" for="showuid">Show key</label>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-info" onclick="confirm_auth()">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="content" id="dashboard" hidden>
|
||||
<div class="container">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label for="video-file">Pick out video file to upload</label>
|
||||
<input type="file" class="form-control" id="video-file">
|
||||
</div>
|
||||
</form>
|
||||
<form id="video-meta" class="form-inline login-form" hidden>
|
||||
<fieldset disabled>
|
||||
<h1>Video Meta Data</h1>
|
||||
<div class="input-group">
|
||||
<button class="btn btn-info" id="name"></button>
|
||||
<button class="btn btn-info" id="size"></button>
|
||||
<button class="btn btn-info" id="type"></button>
|
||||
</div>
|
||||
</fieldset>
|
||||
<video id="hidden-video" hidden>
|
||||
<canvas id="thumbnail">
|
||||
|
||||
<img id="preview">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function toggle_visible(id) {
|
||||
var x = document.getElementById(id);
|
||||
if (x.type === "password") {
|
||||
x.type = "text";
|
||||
} else {
|
||||
x.type = "password";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -10,11 +10,18 @@
|
||||
<li class="breadcrumb-item active" aria-current="page">
|
||||
<a href="{{url}}">{{title}}</a>
|
||||
</li>
|
||||
{# Home page defaults #}
|
||||
|
||||
{% elif page == "video" %}
|
||||
<li class="breadcrumb-item">
|
||||
<a href="/">Home</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item">
|
||||
<a href="/category/{{category}}">{{category}}</a>
|
||||
</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">
|
||||
<a href="{{url}}">{{filename}}</a>
|
||||
</li>
|
||||
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">
|
||||
<a href="/">Home</a>
|
||||
|
Loading…
Reference in New Issue
Block a user