updates; new file/folder working

This commit is contained in:
Henrique Dias
2016-06-28 21:28:39 +01:00
parent 2882caeedd
commit 2f81648576
5 changed files with 475 additions and 402 deletions

View File

@@ -54,7 +54,7 @@
{{ else }}
{{ template "actions" . }}
{{ end }}
<div class="action" id="logout">
<i class="material-icons">exit_to_app</i>
</div>
@@ -81,14 +81,6 @@
{{ template "content" .Data }}
</main>
{{ if .IsDir }}
<div class="floating">
<div class="action" id="newfolder">
<i class="material-icons">add</i>
</div>
</div>
{{ end }}
<footer>
Served with
<a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a>

View File

@@ -31,4 +31,12 @@
</div>
<input style="display:none" type="file" id="upload-input" onchange="handleFiles(this.files)" value="Upload" multiple>
<input id="newdir" type="text" placeholder="Name...">
<div class="floating">
<div class="action" id="new">
<i class="material-icons">add</i>
</div>
</div>
{{ end }}