ShareDAV/templates/base.html

64 lines
1.4 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
2020-10-25 16:36:51 +01:00
input[type="submit"],
input[type="button"] {
padding: .5em;
border-radius: .5em;
border: 0;
background-color: #c4e1ff;
}
input[type="submit"] {
background-color: #a9ca97;
font-weight: bold;
}
#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 {
2020-10-25 16:36:51 +01:00
font-family: sans-serif;
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>