2022-06-13 06:32:14 +00:00
|
|
|
{{ $slug := ((.Context).Value "params").Slug }}
|
|
|
|
{{ $uploadError := ((.Context).Value "file-manager").AddFile $slug . }}
|
|
|
|
|
|
|
|
{{ template "header" . }}
|
|
|
|
|
|
|
|
{{ if $uploadError }}
|
2022-06-18 06:17:08 +00:00
|
|
|
|
|
|
|
<h2>Upload Error</h2>
|
|
|
|
<span class="adapter-error">{{($uploadError).Error}}</span>
|
|
|
|
|
2022-06-13 06:32:14 +00:00
|
|
|
{{ else }}
|
2022-06-18 06:17:08 +00:00
|
|
|
|
|
|
|
<h2>Upload Successful</h2>
|
|
|
|
<span class="adapter-success">The file has been uploaded successfuly</span>
|
|
|
|
|
2022-06-13 06:32:14 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ template "footer" . }}
|