This commit is contained in:
Henrique Dias
2016-11-06 15:27:28 +00:00
parent eeeb1ce0fd
commit 8af33dec47
2 changed files with 133 additions and 57 deletions

View File

@@ -4,7 +4,7 @@
<div class="container" id="listing">
{{- range .Items}}
{{ if .UserAllowed }}
<div class="item" data-dir="{{- if .IsDir}}true{{ else }}false{{ end }}" id="{{.URL}}">
<div ondragstart="itemDragStart(event)" {{ if .IsDir}}ondragover="itemDragOver(event)" ondrop="itemDrop(event)"{{ end }} draggable="true" class="item" data-dir="{{- if .IsDir}}true{{ else }}false{{ end }}" id="{{.URL}}">
<div>
<a href="{{.URL}}">
{{- if .IsDir}}