diff options
author | r <r@freesoftwareextremist.com> | 2021-04-03 06:39:06 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-04-03 06:40:32 +0000 |
commit | 2cb6a515ac019bf5621a4d5bd54cf388f5d65e20 (patch) | |
tree | 5b7e92867a826f6c5a7fd792d8ca6432132140a2 /templates | |
parent | 089d4ac50026a9ec20746e59588df077b7d6ade8 (diff) | |
download | bloat-2cb6a515ac019bf5621a4d5bd54cf388f5d65e20.tar.gz bloat-2cb6a515ac019bf5621a4d5bd54cf388f5d65e20.zip |
Update error page
- Add retry button for GET requests
- Only show signin button when it's a session error
Diffstat (limited to 'templates')
-rw-r--r-- | templates/error.tmpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/error.tmpl b/templates/error.tmpl index fc925ca..c8da1e6 100644 --- a/templates/error.tmpl +++ b/templates/error.tmpl @@ -2,10 +2,15 @@ {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} <div class="page-title"> Error </div> -<div class="error-text"> {{.Error}} </div> +<div class="error-text"> {{.Err}} </div> <div> - <a href="/timeline/home">Home</a> - <a href="/signin" target="_top">Sign In</a> + <a href="/timeline/home">home</a> + {{if .Retry}} + <a href="{{$.Ctx.Referrer}}">retry</a> + {{end}} + {{if .SessionErr}} + <a href="/signin" target="_top">signin</a> + {{end}} </div> {{template "footer.tmpl"}} |