Files
Gokapi/internal/webserver/web/templates/html_error.tmpl

29 lines
989 B
Cheetah

{{define "error"}}{{template "header" .}}
<div class="row">
<div class="col">
<div class="card" style="width: 18rem;">
<div class="card-body">
<h2 class="card-title">Error</h2>
<p class="card-text">
<br>
{{ if eq .ErrorId 0 }}
Sorry, this file cannot be found.<br><br>Either the link has expired or it has been downloaded too many times.
{{ end }}
{{ if eq .ErrorId 1 }}
This file is encrypted and no key has been passed.<br><br>Please contact the uploader to give you the correct link, including the value after the hash.
{{ end }}
{{ if eq .ErrorId 2 }}
This file is encrypted and an incorrect key has been passed.<br><br>If this file is end-to-end encrypted, please contact the uploader to give you the correct link, including the value after the hash.
{{ end }}
<br>&nbsp;
</p>
</div>
</div>
</div>
</div>
{{ template "pagename" "PublicError"}}
{{ template "customjs" .}}
{{template "footer"}}
{{end}}