Add API Framework Revel Source Files
[iec.git] / src / foundation / api / revel / templates / errors / 500-dev.html
1                 <style type="text/css">
2                 html, body {
3                         margin: 0;
4                         padding: 0;
5                         font-family: Helvetica, Arial, Sans;
6                         background: #EEEEEE;
7                 }
8                 .block {
9                         padding: 20px;
10                         border-bottom: 1px solid #aaa;
11                 }
12                 #header h1 {
13                         font-weight: normal;
14                         font-size: 28px;
15                         margin: 0;
16                 }
17                 #more {
18                         color: #666;
19                         font-size: 80%;
20                         border: none;
21                 }
22                 #header {
23                         background: #fcd2da;
24                 }
25                 #header p {
26                         color: #333;
27                 }
28                 #source {
29                         background: #f6f6f6;
30                 }
31                 #source h2 {
32                         font-weight: normal;
33                         font-size: 18px;
34                         margin: 0 0 10px 0;
35                 }
36                 #source .lineNumber {
37                         float: left;
38                         display: block;
39                         width: 40px;
40                         text-align: right;
41                         margin-right: 10px;
42                         font-size: 14px;
43                         font-family: monospace;
44                         background: #333;
45                         color: #fff;
46                 }
47                 #source .line {
48                         clear: both;
49                         color: #333;
50                         margin-bottom: 1px;
51                 }
52                 #source pre {
53                         font-size: 14px;
54                         margin: 0;
55                         overflow-x: hidden;
56                 }
57                 #source .error {
58                         color: #c00 !important;
59                 }
60                 #source .error .lineNumber {
61                         background: #c00;
62                 }
63                 #source a {
64                         text-decoration: none;
65                 }
66                 #source a:hover * {
67                         cursor: pointer !important;
68                 }
69                 #source a:hover pre {
70                         background: #FAFFCF !important;
71                 }
72                 #source em {
73                         font-style: normal;
74                         text-decoration: underline;
75                         font-weight: bold;
76                 }
77                 #source strong {
78                         font-style: normal;
79                         font-weight: bold;
80                 }
81                 #stack {
82                         background: #eee;
83                         padding:0 1em 1em;
84                 }
85                 #stack h3 {
86                         font-weight: normal;
87                 }
88                 #stack code {
89                         font-family:monospace;
90                         white-space: pre;
91                 }
92                 </style>
93                 {{with .Error}}
94                 <div id="header" class="block">
95                         <h1>{{.Title}}</h1>
96                         <p>
97                                 {{if .SourceType}}
98                                         The {{.SourceType}} <strong>{{.Path}}</strong> does not compile: <strong>{{.Description}}</strong>
99                                 {{else}}
100                                         {{.Description}}
101                                 {{end}}
102                         </p>
103                 </div>
104                 {{if .Path}}
105                 <div id="source" class="block">
106                         <h2>In {{.Path}}
107                                 {{if .Line}}
108                                         (around {{if .Line}}line {{.Line}}{{end}}{{if .Column}} column {{.Column}}{{end}})
109                                 {{end}}
110                         </h2>
111                         {{range .ContextSource}}
112                                 <div class="line {{if .IsError}}error{{end}}">
113                                         <span class="lineNumber">{{.Line}}:</span>
114                                         <pre>{{.Source}}</pre>
115                                 </div>
116                         {{end}}
117                 </div>
118                 {{end}}
119                 {{if .Stack}}
120                 <div id="stack">
121                         <h3>Call Stack</h3>
122                         <code>{{.Stack}}</code>
123                 </div>
124                 {{end}}
125                 {{if .MetaError}}
126                         <div id="source" class="block">
127                                 <h2>Additionally, an error occurred while handling this error.</h2>
128                                 <div class="line error">
129                                         {{.MetaError}}
130                                 </div>
131                         </div>
132                 {{end}}
133                 {{end}}