2022-06-15 07:33:56 +00:00
|
|
|
{{ $slug := ((.Context).Value "params").Slug }}
|
|
|
|
{{ $dest := .FormValue "dest" }}
|
|
|
|
{{ $name := .FormValue "filename" }}
|
|
|
|
{{ $moveError := ((.Context).Value "file-manager").Rename $slug $dest $name }}
|
|
|
|
|
|
|
|
{{ template "header" . }}
|
|
|
|
|
|
|
|
{{ if $moveError }}
|
|
|
|
|
|
|
|
<h2>File Move/Rename Error</h2>
|
|
|
|
|
|
|
|
<span class="adapter-error">{{$moveError}}</span>
|
|
|
|
|
|
|
|
{{ else }}
|
|
|
|
|
|
|
|
<h2>File Move/Rename Success</h2>
|
|
|
|
|
2022-06-16 03:41:06 +00:00
|
|
|
<span class="adapter-success">File moved from /{{$slug}} to {{$dest}}{{$name}} </span>
|
2022-06-15 07:33:56 +00:00
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ template "footer.html" . }}
|