Add template for navigating filesystem
This commit is contained in:
parent
67bf51af3f
commit
845735a480
|
@ -0,0 +1,46 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Tiamat | Filesystem for {{ .Client.ClientBasicInfo.Hostname }}</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="/style.css" rel="stylesheet">
|
||||
<script src="https://unpkg.com/htmx.org@1.9.12"
|
||||
integrity="sha384-ujb1lZYygJmzgSwoxRggbCHcjc0rB2XoQrxeTUQyRjrOnlCoYta87iKBWq3EsdM2"
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div id="main">
|
||||
<b>
|
||||
<ul>
|
||||
<li class="hor">
|
||||
<p><a href="/">Home</a></p>
|
||||
</li>
|
||||
<li class="hor">
|
||||
<p><a href="https://git.bulgariu.xyz/raul/tiamat" target="_blank">Source code</a></p>
|
||||
</li>
|
||||
<li class="hor">
|
||||
<p><a href="/dump" target="_blank">Dump clients</a></p>
|
||||
</li>
|
||||
<li class="hor">
|
||||
<p><a hx-post="/save" hx-swap="none" target="_blank" id="pointer">Save clients</a></p>
|
||||
</li>
|
||||
</ul>
|
||||
</b>
|
||||
<hr>
|
||||
<h2 align=center>Filesystem for {{ .Client.ClientBasicInfo.Hostname }}</h2>
|
||||
<div id=command>
|
||||
</div>
|
||||
<br>
|
||||
<form hx-post="/ls/{{ .Client.ClientID }}" hx-target="#command" hx-on--after-request="this.reset()">
|
||||
<label><input id="commandinput" type="text" name="cmd" value="" required autofocus></label>
|
||||
<button type="submit" id="but">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue