2016-06-10 21:18:44 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2016-06-26 17:30:08 +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">
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.3/ace.js"></script>
|
|
|
|
<script src="{{ .Config.BaseURL }}/_filemanagerinternal/js/application.js"></script>
|
|
|
|
{{ if ne .Config.StyleSheet "" }}<style>{{.Config.StyleSheet}}</style>{{ end }}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<div>
|
|
|
|
{{ $lnk := .PreviousLink }}
|
|
|
|
{{ if ne $lnk ""}}<a href="{{ $lnk }}">{{ end }}
|
|
|
|
<div class="action{{ if eq $lnk ""}} disabled{{ end }}" id="prev">
|
2016-06-26 15:52:15 +00:00
|
|
|
<i class="material-icons">subdirectory_arrow_left</i>
|
|
|
|
</div>
|
2016-06-26 17:30:08 +00:00
|
|
|
{{ if ne $lnk ""}}</a>{{ end }}
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<a href="{{ if eq .Config.BaseURL "" }}/{{ else }}{{ .Config.BaseURL }}{{ end }}">
|
|
|
|
{{ if .Config.HugoEnabled }}Hugo{{ else }}File Manager{{ end }}
|
2016-06-26 15:52:15 +00:00
|
|
|
</a>
|
2016-06-26 17:30:08 +00:00
|
|
|
{{ if ne .Name "/"}}<i class="material-icons">chevron_right</i>{{ .Name }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2016-06-26 15:52:15 +00:00
|
|
|
|
|
|
|
<div>
|
2016-06-26 17:30:08 +00:00
|
|
|
{{ if .IsDir}}
|
|
|
|
<form>
|
|
|
|
<i class="material-icons">search</i>
|
|
|
|
<input type="text" placeholder="Search or command">
|
|
|
|
</form>
|
|
|
|
<div class="action" id="view">
|
|
|
|
<i class="material-icons">view_headline</i>
|
|
|
|
</div>
|
|
|
|
<div class="action" id="upload">
|
|
|
|
<i class="material-icons">file_upload</i>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
{{ template "actions" . }}
|
|
|
|
{{ end }}
|
2016-06-22 20:03:48 +00:00
|
|
|
|
2016-06-26 17:30:08 +00:00
|
|
|
{{ if .Config.HugoEnabled }}
|
|
|
|
<a href="{{ .Config.BaseURL }}/settings">
|
|
|
|
<div class="action">
|
|
|
|
<i class="material-icons">settings</i>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
2016-06-23 21:27:13 +00:00
|
|
|
|
2016-06-26 17:30:08 +00:00
|
|
|
<div class="action" id="logout">
|
|
|
|
<i class="material-icons">exit_to_app</i>
|
|
|
|
</div>
|
2016-06-26 15:52:15 +00:00
|
|
|
</div>
|
2016-06-26 17:30:08 +00:00
|
|
|
</header>
|
2016-06-14 19:33:59 +00:00
|
|
|
|
2016-06-26 17:30:08 +00:00
|
|
|
{{ if .IsDir }}
|
|
|
|
<div id="toolbar">
|
2016-06-22 21:18:21 +00:00
|
|
|
<div>
|
2016-06-26 17:30:08 +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-26 17:30:08 +00:00
|
|
|
{{ template "actions" . }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<main>
|
|
|
|
{{ template "content" .Data }}
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{{ if .IsDir }}
|
|
|
|
<div class="floating">
|
|
|
|
<div class="action" id="newfolder">
|
2016-06-26 22:03:27 +00:00
|
|
|
<i class="material-icons">add</i>
|
2016-06-22 21:18:21 +00:00
|
|
|
</div>
|
2016-06-26 17:30:08 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2016-06-23 21:27:13 +00:00
|
|
|
|
2016-06-26 17:30:08 +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>
|
|
|
|
</body>
|
2016-06-23 15:10:31 +00:00
|
|
|
</html>
|