2022-10-11 14:21:06 +02:00
|
|
|
{{define "menu"}}
|
2023-11-16 12:44:04 +01:00
|
|
|
<button id="button_toggle_navigation" class="button_toggle_navigation icon" onclick="toggleMenu();">
|
|
|
|
menu
|
|
|
|
</button>
|
2022-01-11 13:28:22 +01:00
|
|
|
<nav id="page_navigation" class="page_navigation">
|
2022-03-30 00:32:27 +02:00
|
|
|
<a href="/#">Home</a>
|
2023-09-14 14:29:05 +02:00
|
|
|
<a href="/#pro">Subscriptions</a>
|
2023-09-14 21:11:41 +02:00
|
|
|
<a href="/#prepaid">For creators</a>
|
2019-09-19 09:35:09 +02:00
|
|
|
<hr />
|
2024-02-06 17:14:40 +01:00
|
|
|
{{if .Authenticated}}
|
|
|
|
<a href="/user">{{.User.Username}}</a>
|
|
|
|
<a href="/user/filemanager#files">My Files</a>
|
|
|
|
<a href="/user/filemanager#lists">My Albums</a>
|
|
|
|
{{if .User.IsAdmin}}
|
|
|
|
<a href="/admin">Admin Panel</a>
|
|
|
|
{{end}}
|
|
|
|
{{if .User.Subscription.FilesystemAccess}}
|
|
|
|
<a href="/d/me">Filesystem</a>
|
|
|
|
{{end}}
|
|
|
|
<a href="/logout">Log out</a>
|
2019-09-19 09:35:09 +02:00
|
|
|
{{else}}
|
2024-02-06 17:14:40 +01:00
|
|
|
<a href="/login">Login</a>
|
|
|
|
<a href="/register">Register</a>
|
|
|
|
<a href="/history">Upload History</a>
|
2019-09-19 09:35:09 +02:00
|
|
|
{{end}}
|
|
|
|
<hr />
|
|
|
|
<a href="/about">About</a>
|
2021-01-12 14:07:55 +01:00
|
|
|
<a href="/apps">Apps</a>
|
2021-01-12 23:20:32 +01:00
|
|
|
<a href="/appearance">Theme</a>
|
2020-12-15 16:25:20 +01:00
|
|
|
<a href="/api">API</a>
|
|
|
|
<a href="/acknowledgements">Acknowledgements</a>
|
2023-01-30 11:58:46 +01:00
|
|
|
<a href="/abuse">DMCA and abuse</a>
|
2021-05-11 16:14:09 +02:00
|
|
|
<a href="https://stats.uptimerobot.com/p9v2ktzyjm" target="_blank">Server Status</a>
|
2022-01-11 13:28:22 +01:00
|
|
|
</nav>
|
2019-09-16 23:50:57 +02:00
|
|
|
<script>
|
2021-11-27 16:42:41 +01:00
|
|
|
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";
|
2022-03-13 15:42:32 +01:00
|
|
|
body.style.marginLeft = "0";
|
2021-11-27 16:42:41 +01:00
|
|
|
} else {
|
|
|
|
// Menu is hidden, show it
|
|
|
|
nav.style.left = "0";
|
2022-03-13 15:42:32 +01:00
|
|
|
body.style.marginLeft = nav.offsetWidth + "px";
|
2019-09-16 23:50:57 +02:00
|
|
|
}
|
2021-11-27 16:42:41 +01:00
|
|
|
}
|
|
|
|
function resetMenu() {
|
|
|
|
document.getElementById("page_navigation").style.left = "";
|
2022-03-13 15:42:32 +01:00
|
|
|
document.getElementById("page_body").style.marginLeft = "";
|
2021-11-27 16:42:41 +01:00
|
|
|
}
|
2019-09-16 23:50:57 +02:00
|
|
|
</script>
|
|
|
|
{{end}}
|
2019-12-10 14:47:11 +01:00
|
|
|
|
2022-10-11 14:21:06 +02:00
|
|
|
{{define "footer"}}
|
|
|
|
<footer>
|
|
|
|
<div class="footer_content">
|
2022-12-05 15:01:04 +01:00
|
|
|
<div style="display: inline-block; margin: 0 8px;">
|
2022-10-11 14:21:06 +02:00
|
|
|
Pixeldrain is a product by <a href="//fornaxian.tech" target="_blank">Fornaxian Technologies</a>
|
|
|
|
</div>
|
2022-12-05 15:01:04 +01:00
|
|
|
<div style="display: inline-block; margin: 0 8px;">
|
2022-10-11 14:21:06 +02:00
|
|
|
<a href="https://www.patreon.com/pixeldrain" target="_blank">{{template `patreon.svg` .}} Patreon</a> |
|
|
|
|
<a href="https://twitter.com/Fornax96" target="_blank">{{template `twitter.svg` .}} Twitter</a> |
|
|
|
|
<a href="https://reddit.com/r/pixeldrain" target="_blank">{{template `reddit.svg` .}} Reddit</a> |
|
|
|
|
<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/>
|
|
|
|
<span class="small_footer_text" style="font-size: .75em; line-height: .75em;">
|
|
|
|
page rendered by {{.Hostname}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
{{end}}
|
|
|
|
|
2019-12-10 14:47:11 +01:00
|
|
|
{{define "page_top"}}
|
2022-10-11 14:21:06 +02:00
|
|
|
{{template "menu" .}}
|
2019-12-10 14:47:11 +01:00
|
|
|
<div id="page_body" class="page_body">
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "page_bottom"}}
|
2022-10-11 14:21:06 +02:00
|
|
|
{{template "footer" .}}
|
|
|
|
</div>
|
2019-12-10 14:47:11 +01:00
|
|
|
{{end}}
|