ShareDAV/templates/base.html

50 lines
1.0 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ShareDAV</title>
<style>
thead {
font-weight: bold;
}
2020-10-25 12:05:47 +01:00
#content {
float: right;
width: 100%;
background-color: #F0F0F0;
}
2020-10-25 12:05:47 +01:00
#menu {
float: left;
width: 200px;
margin-left: -200px;
background-color: #CCCCCC;
}
2020-10-25 12:05:47 +01:00
#menu span {
display: block;
}
body {
margin-left: 200px
}
</style>
{{ block "page-styles" . }}{{ end }}
</head>
<body>
2020-10-25 12:05:47 +01:00
<div id="content">
{{ block "page-content" . }}{{ end }}
</div>
<div id="menu">
<span><a href="./">ShareDAV</a></span>
{{ if .SessionUser }}
{{ if eq .SessionUser.Role "admin" }}
<span><a href="users">Users</a></span>
<span><a href="shares">Shares</a></span>
{{ end }}
<span><a href="logout">Logout</a></span>
{{ end }}
</div>
<div style="clear: both;"></div>
</body>
</html>