// Copyright (C) 2019 Marius Schellenberger // This file is auto-generated by templates.sh // using the contents of the templates directory package server import ( "encoding/base64" "errors" "git.giftfish.de/ston1th/docstore/pkg/log" "html/template" ) const ( delete = `{{define "body"}}
You are about to delete
{{if eq .Data 1}}the directory{{end}}
{{if eq .Data 2}}the file{{end}}
{{.Path}}.
{{if eq .Data 1}}
This will also remove all files and directories below.
| Path | Type | Tags | Options |
|---|---|---|---|
| {{$item.Name}} | Directory | ||
| {{$item.Name}} | File |
{{range $t := $item.Tags}}
{{$t}}
{{end}}
|
This file is indexed but has been removed from the file system.
Do you want to delete this entry from the index?
{{.Msg}}
{{.Data}}
Create new directory in {{.Path}}.
| File | Tags |
|---|---|
{{$item.Path}}
{{if $item.HTML}}
{{$item.HTML}}
{{end}}
|
{{$item.Tags}} |
You are about to delete the tag {{.Data}}.
| Name | Regex | Options |
|---|---|---|
| {{$item.Name}} | {{printf "%.50s" $item.Regex}}{{if gt $len 50}}...{{end}} |