mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
The UI was originally written using fancy HTML checkbox toggle hacks in order to make the UI very fast. It's cool but complicated and difficult to change. In order to make updates to the UI more quickly, I'm changing it to use traditional HTML with full page reloads for navigation. It's not as fast but much simpler.
37 lines
902 B
Cheetah
37 lines
902 B
Cheetah
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<title>boringproxy</title>
|
|
|
|
<link rel="icon" href="/logo.png">
|
|
|
|
<style>
|
|
{{ template "styles.tmpl" }}
|
|
</style>
|
|
|
|
<style>
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<main>
|
|
<input type='checkbox' id='menu-toggle'/>
|
|
<label id='menu-label' for='menu-toggle'>Menu</label>
|
|
|
|
<div class='page'>
|
|
<div class='menu'>
|
|
<a class='menu-item' href='/tunnels'>Tunnels</a>
|
|
<a class='menu-item' href='/edit-tunnel'>Add Tunnel</a>
|
|
<a class='menu-item' href='/tokens'>Tokens</a>
|
|
{{ if $.User.IsAdmin }}
|
|
<a class='menu-item' href='/users'>Users</a>
|
|
{{ end }}
|
|
<a class='menu-item' href='/confirm-logout'>Logout</a>
|
|
</div>
|
|
|
|
<div class='content'>
|
|
|