ready for v1.0rc1
This commit is contained in:
parent
84d48a6eea
commit
ce5764840f
15 changed files with 140 additions and 49 deletions
|
|
@ -96,6 +96,18 @@ const (
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{end}}`
|
||||
enoent = `{{define "body"}}
|
||||
<div class="alert alert-danger msg">
|
||||
<h4>File missing!</h4>
|
||||
<p>This file is indexed but has been removed from the file system.</p>
|
||||
<p>Do you want to delete this entry from the index?</p>
|
||||
</div>
|
||||
<form class="form-horizontal" action="/delete{{.Path}}" method="post">
|
||||
<input type="hidden" name="token" value="{{.Token}}">
|
||||
<input type="hidden" name="clean" value="true">
|
||||
<button class="btn btn-sm btn-danger" type="submit">Delete</button>
|
||||
</form>
|
||||
{{end}}`
|
||||
file = `{{define "body"}}
|
||||
<div class="row">
|
||||
|
|
@ -427,7 +439,7 @@ const (
|
|||
<input type="hidden" name="token" value="{{.Token}}">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label" for="name">Name</label>
|
||||
<input class="form-control input-sm" type="text" id="name" name="name" autocomplete="off" value="{{.Data}}">
|
||||
<input class="form-control input-sm" type="text" id="name" name="name" autocomplete="off" value="{{.Data}}" placeholder="optional">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="input-group mb-3">
|
||||
|
|
@ -721,6 +733,7 @@ func (s *HTTPServer) loadTemplates() {
|
|||
s.templ["uploadHandler"] = parse(index, menu, upload)
|
||||
s.templ["newDirHandler"] = parse(index, menu, newDir)
|
||||
s.templ["moveHandler"] = parse(index, menu, move)
|
||||
s.templ["enoentHandler"] = parse(index, menu, enoent)
|
||||
s.templ["deleteHandler"] = parse(index, menu, delete)
|
||||
s.templ["notFoundHandler"] = parse(index, menu, notFound)
|
||||
s.templ["forbiddenHandler"] = parse(index, menu, forbidden)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue