Files
fnx_web/res/template/fragments/menu.html

23 lines
673 B
HTML
Raw Normal View History

2017-11-10 12:39:55 +01:00
{{define "menu"}}
<div id="navigation" class="highlight_light border_top border_bottom navigation">
2018-01-07 23:05:51 +01:00
<a href="/">Home</a>
<a href="/history">My&nbsp;Files</a>
2018-06-23 21:17:53 +02:00
<a href="/api">API</a>
{{if .Authenticated}}<a href="/user">{{.Username}}</a>{{else}}
<a href="/login">Login</a>
<a href="/register">Register</a>
{{end}}
2018-01-07 23:05:51 +01:00
<a href="javascript:void(0);" class="icon" onclick="expandNavigation()">&#9776;</a>
<script>
function expandNavigation() {
var x = document.getElementById("navigation");
if (!x.className.includes("responsive")) {
x.className += " responsive";
} else {
x.className = x.className.replace(" responsive", "");
}
}
</script>
2017-11-10 12:39:55 +01:00
</div>
{{end}}