forked from grails/grails-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit a36039f Author: Rob Fletcher <robert.w.fletcher@gmail.com> Date: Tue Jun 21 09:25:05 2011 +0100 merged in error page changes commit cf43daf Merge: 7f9ce99 2431a4e Author: Rob Fletcher <robert.w.fletcher@gmail.com> Date: Tue Jun 21 09:04:24 2011 +0100 Merge branch 'master' into error-styling commit 7f9ce99 Merge: 9e9bdf0 2729529 Author: Rob Fletcher <robert.w.fletcher@gmail.com> Date: Fri Jun 17 19:20:50 2011 +0100 Merge branch 'master' into error-styling commit 9e9bdf0 Author: Rob Fletcher <robert.w.fletcher@gmail.com> Date: Fri Jun 17 07:44:00 2011 +0100 use definition list for error details commit 06ab871 Merge: 2f17272 a973217 Author: Rob Fletcher <robert.w.fletcher@gmail.com> Date: Thu Jun 16 21:47:02 2011 +0100 Merge branch 'master' into error-styling Conflicts: grails-plugin-gsp/src/main/groovy/org/codehaus/groovy/grails/plugins/web/taglib/RenderTagLib.groovy commit 2f17272 Author: Rob Fletcher <robert.w.fletcher@gmail.com> Date: Thu Jun 16 21:43:58 2011 +0100 add a margin above the page footer commit fd8d59d Author: Rob Fletcher <robert.w.fletcher@gmail.com> Date: Thu Jun 16 21:43:31 2011 +0100 simplify & correct some markup in error output
- Loading branch information
1 parent
2431a4e
commit da90fae
Showing
5 changed files
with
130 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,52 +1,11 @@ | |||
<!doctype html> | |||
<html> | <html> | ||
<head> | <head> | ||
|
<title>Grails Runtime Exception</title> | ||
<title>Grails Runtime Exception</title> | <meta name="layout" content="main"> | ||
<meta name="layout" content="main"></meta> | <link rel="stylesheet" href="${resource(dir: 'css', file: 'errors.css')}" type="text/css"> | ||
<style type="text/css"> | </head> | ||
h1, h2 { | <body> | ||
margin: 10px; | <g:renderException exception="${exception}" /> | ||
} | </body> | ||
.exceptionMessage { | |||
margin: 10px; | |||
border: 1px solid black; | |||
padding: 5px; | |||
background-color:#E9E9E9; | |||
} | |||
.stack { | |||
margin:10px; | |||
margin-left:25px; | |||
margin-right:25px; | |||
border: 1px solid black; | |||
padding: 5px; | |||
overflow:auto; | |||
height: 150px; | |||
} | |||
.snippet { | |||
background-color:white; | |||
border:1px solid black; | |||
margin:10px; | |||
margin-left:25px; | |||
margin-right:25px; | |||
font-family:courier; | |||
} | |||
.snippet .lineNumber { | |||
background-color:black; | |||
font-weight:white; | |||
color:white; | |||
padding-left:3px; | |||
padding-right:3px; | |||
} | |||
.snippet .errorLine .lineNumber { | |||
background-color:#cc0000; | |||
font-weight:bold; | |||
color:white; | |||
} | |||
</style> | |||
</head> | |||
|
|||
<body> | |||
<g:renderException exception="${exception}" /> | |||
</body> | |||
</html> | </html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,100 @@ | |||
h1, h2 { | |||
margin: 10px 25px 5px; | |||
} | |||
|
|||
h2 { | |||
font-size: 1.1em; | |||
} | |||
|
|||
.filename { | |||
font-style: italic; | |||
} | |||
|
|||
.exceptionMessage { | |||
margin: 10px; | |||
border: 1px solid #000; | |||
padding: 5px; | |||
background-color: #E9E9E9; | |||
} | |||
|
|||
.error-details, | |||
.stack, | |||
.snippet { | |||
margin: 0 25px 10px; | |||
} | |||
|
|||
.stack, | |||
.snippet { | |||
border: 1px solid #ccc; | |||
-mox-box-shadow: 0 0 2px rgba(0,0,0,0.2); | |||
-webkit-box-shadow: 0 0 2px rgba(0,0,0,0.2); | |||
box-shadow: 0 0 2px rgba(0,0,0,0.2); | |||
} | |||
|
|||
/* error details */ | |||
.error-details { | |||
line-height: 1.5; | |||
overflow: hidden; | |||
padding: 0; | |||
} | |||
|
|||
.error-details dt { | |||
clear: left; | |||
float: left; | |||
font-weight: bold; | |||
margin-right: 5px; | |||
} | |||
|
|||
.error-details dt:after { | |||
content: ":"; | |||
} | |||
|
|||
.error-details dd { | |||
display: block; | |||
} | |||
|
|||
/* stack trace */ | |||
.stack { | |||
padding: 5px; | |||
overflow: auto; | |||
height: 150px; | |||
} | |||
|
|||
/* code snippet */ | |||
.snippet { | |||
background-color: #fff; | |||
font-family: monospace; | |||
} | |||
|
|||
.snippet .line { | |||
display: block; | |||
} | |||
|
|||
.snippet .lineNumber { | |||
background-color: #ddd; | |||
color: #999; | |||
display: inline-block; | |||
margin-right: 5px; | |||
padding: 0 3px; | |||
text-align: right; | |||
width: 3em; | |||
} | |||
|
|||
.snippet .error { | |||
background-color: #fff3f3; | |||
font-weight: bold; | |||
} | |||
|
|||
.snippet .error .lineNumber { | |||
background-color: #faa; | |||
color: #333; | |||
font-weight: bold; | |||
} | |||
|
|||
.snippet .line:first-child .lineNumber { | |||
padding-top: 5px; | |||
} | |||
|
|||
.snippet .line:last-child .lineNumber { | |||
padding-bottom: 5px; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters