filebrowser/assets/embed/templates/listing.tmpl

43 lines
1.2 KiB
Cheetah
Raw Normal View History

2016-06-10 21:18:44 +00:00
{{ define "content" }}
2016-06-23 14:05:51 +00:00
<div class="listing">
2016-06-22 21:18:21 +00:00
<div class="container" id="listing">
{{- range .Items}}
2016-06-23 14:13:22 +00:00
<div class="item" data-dir="{{- if .IsDir}}true{{ else }}false{{ end }}" id="{{.URL}}">
2016-06-22 21:18:21 +00:00
<div>
<a href="{{.URL}}">
{{- if .IsDir}}
<i class="material-icons">folder</i>
{{- else}}
<i class="material-icons">insert_drive_file</i>
{{- end}}
</a>
</div>
<div>
<a href="{{.URL}}">
<span class="name">{{.Name}}</span>
{{- if .IsDir}}
<p data-order="-1">&mdash;</p>
{{- else}}
<p data-order="{{.Size}}">{{.HumanSize}}</p>
{{- end}}
2016-07-01 09:46:09 +00:00
<p>
2016-06-22 21:18:21 +00:00
<time datetime="{{.HumanModTime " 2006-01-02T15:04:05Z"}}">{{.HumanModTime "01/02/2006 03:04:05 PM -07:00"}}</time>
</p>
</a>
</div>
2016-06-30 20:28:44 +00:00
<span class="checkbox" data-href="{{.URL}}"><i class="material-icons">check</i></div>
2016-06-28 09:01:00 +00:00
{{- end}}
2016-06-22 21:18:21 +00:00
</div>
</div>
2016-06-23 07:22:39 +00:00
2016-06-28 09:01:00 +00:00
<input style="display:none" type="file" id="upload-input" onchange="handleFiles(this.files)" value="Upload" multiple>
2016-06-28 20:28:39 +00:00
<input id="newdir" type="text" placeholder="Name...">
<div class="floating">
<div class="action" id="new">
<i class="material-icons">add</i>
</div>
</div>
2016-06-28 09:01:00 +00:00
{{ end }}