all repos — nirvash @ main

modular CMS using the quartzgun library

templates/file_upload_process.html (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{ $slug := ((.Context).Value "params").Slug }}
{{ $uploadError := ((.Context).Value "file-manager").AddFile $slug . }}

{{ template "header" . }}

{{ if $uploadError }}

<h2>Upload Error</h2>
<span class="adapter-error">{{($uploadError).Error}}</span>
  
{{ else }}

<h2>Upload Successful</h2>
<span class="adapter-success">The file has been uploaded successfuly</span>
  
{{ end }}

{{ template "footer" . }}