aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-04-03 06:39:06 +0000
committerr <r@freesoftwareextremist.com>2021-04-03 06:40:32 +0000
commit2cb6a515ac019bf5621a4d5bd54cf388f5d65e20 (patch)
tree5b7e92867a826f6c5a7fd792d8ca6432132140a2 /templates
parent089d4ac50026a9ec20746e59588df077b7d6ade8 (diff)
downloadbloat-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.tmpl11
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"}}