Remove unused Go templates
This commit is contained in:
@@ -1,90 +0,0 @@
|
||||
{{define "menu"}}
|
||||
<button id="button_toggle_navigation" class="button_toggle_navigation icon" onclick="toggleMenu();">
|
||||
menu
|
||||
</button>
|
||||
<nav id="page_navigation" class="page_navigation">
|
||||
<a href="/home#">Home</a>
|
||||
{{if eq .User.Subscription.ID ""}}
|
||||
<a href="/home#pro">Get Premium</a>
|
||||
{{end}}
|
||||
<hr />
|
||||
{{if .Authenticated}}
|
||||
<a href="/user">{{.User.Username}}</a>
|
||||
{{if .User.Subscription.FilesystemAccess}}
|
||||
<a href="/d/me">Filesystem</a>
|
||||
{{end}}
|
||||
{{if .User.IsAdmin}}
|
||||
<a href="/admin">Admin Panel</a>
|
||||
{{end}}
|
||||
<a href="/logout">Log out</a>
|
||||
{{else}}
|
||||
<a href="/login">Login</a>
|
||||
<a href="/register">Register</a>
|
||||
{{end}}
|
||||
<hr />
|
||||
<a href="/about">Questions & Answers</a>
|
||||
<a href="/apps">Apps</a>
|
||||
<a href="/appearance">Theme</a>
|
||||
<a href="/speedtest">Speedtest</a>
|
||||
<a href="/api">API</a>
|
||||
<a href="/filesystem">Filesystem Guide</a>
|
||||
<a href="/acknowledgements">Acknowledgements</a>
|
||||
<a href="/abuse">DMCA and abuse</a>
|
||||
<a href="https://stats.uptimerobot.com/p9v2ktzyjm" target="_blank">Server Status</a>
|
||||
</nav>
|
||||
<script>
|
||||
function toggleMenu() {
|
||||
var nav = document.getElementById("page_navigation");
|
||||
var body = document.getElementById("page_body");
|
||||
if (nav.offsetLeft === 0) {
|
||||
// Menu is visible, hide it
|
||||
nav.style.left = -nav.offsetWidth + "px";
|
||||
body.style.marginLeft = "0";
|
||||
} else {
|
||||
// Menu is hidden, show it
|
||||
nav.style.left = "0";
|
||||
body.style.marginLeft = nav.offsetWidth + "px";
|
||||
}
|
||||
}
|
||||
function resetMenu() {
|
||||
document.getElementById("page_navigation").style.left = "";
|
||||
document.getElementById("page_body").style.marginLeft = "";
|
||||
}
|
||||
</script>
|
||||
{{end}}
|
||||
|
||||
{{define "footer"}}
|
||||
<footer>
|
||||
<div class="footer_content">
|
||||
<div style="display: inline-block; margin: 0 8px;">
|
||||
Nova is a product by <a href="//fornaxian.tech" target="_blank">Fornaxian Technologies</a>
|
||||
</div>
|
||||
<br/>
|
||||
<div style="display: inline-block; margin: 0 8px;">
|
||||
<a href="https://github.com/Fornaxian" target="_blank">{{template `github.svg` .}} GitHub</a> |
|
||||
<a href="https://mastodon.social/web/@fornax" target="_blank">{{template `mastodon.svg` .}} Mastodon</a>
|
||||
</div>
|
||||
<br/>
|
||||
<div style="display: inline-block; margin: 0 8px;">
|
||||
{{$speed := .PixelAPI.GetMiscClusterSpeed}}
|
||||
Server speed: {{ formatDataBits $speed.ServerTX }}ps |
|
||||
Cache cluster: {{ formatDataBits $speed.CacheTX }}ps |
|
||||
Storage cluster: {{ formatDataBits $speed.StorageTX }}ps
|
||||
</div>
|
||||
<br/>
|
||||
<span class="small_footer_text" style="font-size: .75em; line-height: .75em;">
|
||||
page rendered by {{.Hostname}}
|
||||
</span>
|
||||
</div>
|
||||
</footer>
|
||||
{{end}}
|
||||
|
||||
{{define "page_top"}}
|
||||
{{template "menu" .}}
|
||||
<div id="page_body" class="page_body">
|
||||
{{end}}
|
||||
|
||||
{{define "page_bottom"}}
|
||||
{{template "footer" .}}
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user