update browse interface
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
{{ define "content" }}{{ $path := .Path }}
|
||||
|
||||
<div class="container">
|
||||
<h1 id="site-title">Path: {{ $path }}</h1>
|
||||
|
||||
<main class="browse">
|
||||
<div class="actions">
|
||||
<div class="container">
|
||||
{{if .CanGoUp}}<a data-pjax href=".." class="up" title="Up one level"><i class="fa fa-arrow-left fa-lg"></i></a>{{end}}
|
||||
<div class="go-right">
|
||||
<input type="file" value="Upload" multiple>
|
||||
<button id="upload">Upload <i class="fa fa-cloud-upload"></i></button>
|
||||
<button class="default new">New +</button>
|
||||
<div id="new-file">
|
||||
Write the name of the new file. If you want to use an archetype, add ':archetype' in the end, replacing 'archetype' by its name.
|
||||
<input id="new-file-name" type="text">
|
||||
</div>
|
||||
<main class="browse">
|
||||
<div class="actions">
|
||||
<div class="container">
|
||||
{{if .CanGoUp}}<a data-pjax href=".." class="up" title="Up one level"><i class="fa fa-arrow-left fa-lg"></i></a>{{end}}
|
||||
<span id="site-title">Path: {{ $path }}</span>
|
||||
<div class="go-right">
|
||||
<input type="file" value="Upload" multiple>
|
||||
<button id="upload">Upload <i class="fa fa-cloud-upload"></i></button>
|
||||
<button class="default new">New <i class="fa fa-plus"></i></button>
|
||||
<div id="new-file">
|
||||
Write the name of the new file. If you want to use an archetype, add ':archetype' in the end, replacing 'archetype' by its name.
|
||||
<input id="new-file-name" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<table>
|
||||
<tr>
|
||||
<th class="left">
|
||||
@@ -35,12 +34,11 @@
|
||||
</th>
|
||||
<th class="hideable right">
|
||||
{{if and (eq .Sort "time") (ne .Order "desc")}}
|
||||
<a href="?sort=time&order=desc">Modified <i class="fa fa-arrow-up"></i></a> {{else if and (eq .Sort "time") (ne .Order "asc")}}
|
||||
<a href="?sort=time&order=asc">Modified <i class="fa fa-arrow-down"></i></a> {{else}}
|
||||
<a href="?sort=time&order=asc">Modified</a> {{end}}
|
||||
<a data-pjax href="?sort=time&order=desc">Modified <i class="fa fa-arrow-up"></i></a> {{else if and (eq .Sort "time") (ne .Order "asc")}}
|
||||
<a data-pjax href="?sort=time&order=asc">Modified <i class="fa fa-arrow-down"></i></a> {{else}}
|
||||
<a data-pjax href="?sort=time&order=asc">Modified</a> {{end}}
|
||||
</th>
|
||||
<th class="right"></th>
|
||||
<th class="right"></th>
|
||||
<th class="right buttons"></th>
|
||||
</tr>
|
||||
{{range .Items}}
|
||||
<tr>
|
||||
@@ -52,11 +50,10 @@
|
||||
</td>
|
||||
<td class="right hideable">{{.HumanSize}}</td>
|
||||
<td class="right hideable">{{.HumanModTime "01/02/2006 3:04:05 PM"}}</td>
|
||||
<td class="right"><button data-file="/admin/browse{{ $path }}{{.URL}}" data-message="File renamed." class="rename">✎</button></td>
|
||||
<td class="right"><button data-file="/admin/browse{{ $path }}{{.URL}}" data-message="File deleted." class="delete">✖</button></td>
|
||||
<td class="right"><button data-file="/admin/browse{{ $path }}{{.URL}}" data-message="File renamed." class="rename">✎</button> <button data-file="/admin/browse{{ $path }}{{.URL}}" data-message="File deleted." class="delete">✖</button></td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user