diff options
Diffstat (limited to 'templates/error.html')
-rw-r--r-- | templates/error.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 000000000..b86039ca3 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,24 @@ +{{define "error"}} +<!DOCTYPE html> +<html> +{{template "head" . }} +<body class="white error"> + <div class="container-fluid"> + <div class="error__container"> + <div class="error__icon"> + <i class="fa fa-exclamation-triangle"/> + </div> + <h2>{{.Props.Title}}</h2> + <p>{{ .Props.Message }}</p> + <a href="{{.Props.SiteURL}}">{{.Props.Link}}</a> + </div> + </div> +</body> +<script> +var details = {{ .Props.Details }}; +if (details.length > 0) { + console.log("error details: " + details); +} +</script> +</html> +{{end}} |