summaryrefslogtreecommitdiffstats
path: root/templates/error.html
blob: b86039ca383f61c8a23fe44781a7902ccd6bda92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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}}