This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.html
146 lines (146 loc) · 2.71 KB
/
error.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html>
<head>
<title>Template Error</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: Helvetica, Arial, Sans;
background: #FEFEFE;
margin: 20px;
}
a {
color: #65656B;
}
.block {
padding: 15px;
border-top: 1px solid #FFF;
border-bottom: 1px solid #E6E6E6;
}
.container {
width: 800px;
margin-left: auto;
margin-right: auto;
}
.errorLogo {
float: left;
}
#header h1 {
font-size: 28px;
margin: 0;
word-break: break-all;
overflow: hidden;
}
#more {
color: #666;
font-size: 80%;
border: none;
}
#header {
color: #A94442;
font-weight: bold;
border-bottom: 1px solid #E2E2E2;
}
#source {
background: #f6f6f6;
}
#source h2 {
font-weight: normal;
font-size: 18px;
margin: 0 0 10px 0;
padding-bottom: 10px;
border-bottom: 1px solid #E6E6E6;
}
#source .lineNumber {
float: left;
display: block;
text-align: right;
margin-right: 5px;
font-size: 14px;
font-family: monospace;
background: #C9C9C9;
color: #fff;
padding: 3px;
}
#source .line {
clear: both;
color: #333;
margin-bottom: 1px;
}
#source .line:nth-child(odd) {
background-color: #ECECEC;
}
#source .line:nth-child(even) {
background-color: #F0F0F0;
}
#source pre {
font-size: 14px;
margin: 0;
overflow-x: hidden;
padding: 3px;
}
#source .error {
color: #C00 !important;
}
#source .error .lineNumber {
background: #C00;
}
#source a {
text-decoration: none;
}
#source a:hover * {
cursor: pointer !important;
}
#source a:hover pre {
background: #FAFFCF !important;
}
#source em {
font-style: normal;
text-decoration: underline;
font-weight: bold;
}
#source strong {
font-style: normal;
font-weight: bold;
}
.footer {
padding: 10px;
font-size: 12px;
color: #7A7A7A;
}
</style>
</head>
<body>
<div class="container">
<div id="header" class="block">
<h1>
<div class="errorLogo">
<img src="https://raw.githubusercontent.com/CoreyKaylor/gonocular/master/gopher-grave.png" alt="Gopher behind grave."/>
</div>
<div class="errorMessage">
{{.ErrorMessage}}
</div>
</h1>
</div>
<div id="source" class="block">
<h2>In {{.FileName}}
{{if .LineNumber}}
(around {{if .LineNumber}}line {{.LineNumber}}{{end}}
{{end}}
</h2>
{{range .SourceLines }}
<div class="line {{if .HasError}}error{{end}}">
<span class="lineNumber">{{.Line}}:</span>
<pre>{{.Text}}</pre>
</div>
{{end}}
</div>
<div>
<div class="footer">
Resources: <a href="https://code.google.com/p/go-wiki/w/list" target="_blank">wiki</a>, todo...
</div>
</div>
</div>
</body>
</html>