Renamed views directory to templates.

This commit is contained in:
mikestefanello 2021-12-14 11:30:31 -05:00
parent d0caa8119e
commit 299774c0c7
12 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,11 @@
{{define "content"}}
{{if gt .StatusCode 500}}
<p>Please try again. Request ID: {{.RequestID}}</p>
{{else if or (eq .StatusCode 403) (eq .StatusCode 401)}}
<p>You are not authorized to view the requested page.</p>
{{else if eq .StatusCode 404}}
<p>Click {{link (call .Reverse "home") "here" .Path}} to return home</p>
{{else}}
<p>Something went wrong</p>
{{end}}
{{end}}