filebrowser/assets/templates/base.tmpl

66 lines
2.0 KiB
Cheetah
Raw Normal View History

2016-06-10 21:18:44 +00:00
<!DOCTYPE html>
<html>
<head>
<title>{{.Name}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2016-06-14 15:13:38 +00:00
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
2016-06-11 13:32:50 +00:00
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500' rel='stylesheet' type='text/css'>
2016-06-11 09:08:33 +00:00
<link rel="stylesheet" href="/_filemanagerinternal/css/styles.css">
2016-06-14 15:13:38 +00:00
<script src="/_filemanagerinternal/js/application.js"></script>
2016-06-11 13:32:50 +00:00
<style>
2016-06-11 09:08:33 +00:00
2016-06-11 13:32:50 +00:00
</style>
2016-06-10 21:18:44 +00:00
</head>
<body>
<header>
2016-06-14 15:13:38 +00:00
<div>
<p>File Manager <i class="material-icons">chevron_right</i> {{ .Name }}</p>
</div>
<div>
Search
</div>
<div>
<div class="action" id="upload"><i class="material-icons">file_upload</i></div>
2016-06-11 13:32:50 +00:00
</div>
2016-06-10 21:18:44 +00:00
</header>
2016-06-14 15:13:38 +00:00
<div id="toolbar">
<div>
<div class="action" id="back"><i class="material-icons">arrow_back</i></div>
<p><span id="selected-number">0</span> selected.</p>
</div>
<div>
<div class="action" id="open"><i class="material-icons">open_in_new</i></div>
<div class="action" id="rename"><i class="material-icons">mode_edit</i></div>
<div class="action" id="download"><i class="material-icons">file_download</i></div>
<div class="action" id="delete"><i class="material-icons">delete</i></div>
</div>
</div>
File Manager {{range $url, $name := .BreadcrumbMap}}<i>></i><a href="/{{$url}}">{{$name}}</a>{{end}}
2016-06-10 21:18:44 +00:00
<main>
2016-06-11 09:08:33 +00:00
{{ template "content" .Data }}
2016-06-10 21:18:44 +00:00
</main>
<footer>
Served with <a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a>.
</footer>
<script type="text/javascript">
function localizeDatetime(e, index, ar) {
if (e.textContent === undefined) {
return;
}
var d = new Date(e.getAttribute('datetime'));
if (isNaN(d)) {
d = new Date(e.textContent);
if (isNaN(d)) {
return;
}
}
e.textContent = d.toLocaleString();
}
var timeList = Array.prototype.slice.call(document.getElementsByTagName("time"));
timeList.forEach(localizeDatetime);
</script>
</body>
</html>