2016-06-10 21:18:44 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2016-06-28 09:01:00 +00:00
|
|
|
<head>
|
|
|
|
<title>{{.Name}}</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500' rel='stylesheet' type='text/css'>
|
|
|
|
<link rel="stylesheet" href="{{ .Config.BaseURL }}/_filemanagerinternal/css/styles.css">
|
2016-06-26 17:30:08 +00:00
|
|
|
|
2016-06-28 09:01:00 +00:00
|
|
|
{{ if ne .Config.StyleSheet "" }}
|
|
|
|
<style>
|
|
|
|
{{.Config.StyleSheet}}
|
|
|
|
</style>
|
|
|
|
{{ end }}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<div>
|
|
|
|
{{ $lnk := .PreviousLink }}
|
|
|
|
{{ if ne $lnk ""}}
|
|
|
|
<a href="{{ $lnk }}">
|
|
|
|
{{ end }}
|
2016-06-30 20:28:44 +00:00
|
|
|
<div class="action{{ if eq $lnk ""}} disabled{{ end }}" id="prev">
|
2016-06-28 09:01:00 +00:00
|
|
|
<i class="material-icons">subdirectory_arrow_left</i>
|
|
|
|
</div>
|
|
|
|
{{ if ne $lnk ""}}
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
2016-06-26 15:52:15 +00:00
|
|
|
|
2016-07-01 09:01:31 +00:00
|
|
|
<div class="action" id="open-nav">
|
|
|
|
<i class="material-icons">menu</i>
|
|
|
|
</div>
|
|
|
|
|
2016-06-28 09:01:00 +00:00
|
|
|
<p>
|
2016-06-30 20:28:44 +00:00
|
|
|
<a href="{{ if eq .Config.BaseURL "" }}/{{ else }}{{ .Config.BaseURL }}{{ end }}">
|
2016-06-28 09:01:00 +00:00
|
|
|
{{ if .Config.HugoEnabled }}Hugo{{ else }}File Manager{{ end }}
|
|
|
|
</a>
|
|
|
|
{{ if ne .Name "/"}}
|
|
|
|
<i class="material-icons">chevron_right</i>{{ .Name }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2016-06-22 20:03:48 +00:00
|
|
|
|
2016-06-28 09:01:00 +00:00
|
|
|
<div>
|
2016-07-01 09:01:31 +00:00
|
|
|
{{ template "buttons" . }}
|
2016-06-28 09:01:00 +00:00
|
|
|
</div>
|
|
|
|
</header>
|
2016-06-14 19:33:59 +00:00
|
|
|
|
2016-06-28 09:01:00 +00:00
|
|
|
{{ if .IsDir }}
|
|
|
|
<div id="toolbar">
|
2016-06-22 21:18:21 +00:00
|
|
|
<div>
|
2016-06-28 09:01:00 +00:00
|
|
|
<div class="action" id="back">
|
|
|
|
<i class="material-icons">arrow_back</i>
|
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<span id="selected-number">0</span>
|
|
|
|
selected.</p>
|
2016-06-22 21:18:21 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2016-06-28 09:01:00 +00:00
|
|
|
{{ template "actions" . }}
|
2016-06-26 17:30:08 +00:00
|
|
|
</div>
|
2016-06-28 09:01:00 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2016-06-26 17:30:08 +00:00
|
|
|
|
2016-06-28 09:01:00 +00:00
|
|
|
<main>
|
|
|
|
{{ template "content" .Data }}
|
|
|
|
</main>
|
2016-06-26 17:30:08 +00:00
|
|
|
|
2016-06-28 09:01:00 +00:00
|
|
|
<footer>
|
|
|
|
Served with
|
|
|
|
<a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a>
|
|
|
|
and
|
|
|
|
<a rel="noopener noreferrer" href="https://github.com/hacdias/caddy-filemanager">File Manager</a>.
|
|
|
|
{{ if .Config.HugoEnabled }}With a flavour of
|
|
|
|
<a rel="noopener noreferrer" href="https://github.com/hacdias/caddy-filemanager">Hugo</a>.{{ end }}
|
|
|
|
</footer>
|
2016-06-23 21:27:13 +00:00
|
|
|
|
2016-06-28 09:01:00 +00:00
|
|
|
<!-- SCRIPTS -->
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js"></script>
|
|
|
|
<script src="{{ .Config.BaseURL }}/_filemanagerinternal/js/form2js.js"></script>
|
|
|
|
<script src="{{ .Config.BaseURL }}/_filemanagerinternal/js/application.js"></script>
|
2016-06-28 16:11:48 +00:00
|
|
|
{{ if .Config.HugoEnabled }}<script src="{{ .Config.BaseURL }}/_hugointernal/js/application.js"></script>{{ end }}
|
2016-06-28 09:01:00 +00:00
|
|
|
</body>
|
2016-06-23 15:10:31 +00:00
|
|
|
</html>
|