exception.php 2.04 KB
Newer Older
1 2 3 4
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
5 6 7 8 9
	<title>Laravel - <?php echo $severity; ?></title>
 
	<link href="http://fonts.googleapis.com/css?family=Quattrocento&amp;v1" rel="stylesheet" type="text/css" media="all" />
	<link href="http://fonts.googleapis.com/css?family=Ubuntu&amp;v1" rel="stylesheet" type="text/css" media="all" />
	<link href="http://fonts.googleapis.com/css?family=Lobster+Two&amp;v1" rel="stylesheet" type="text/css" media="all" />
10 11 12

	<style type="text/css">
		body {
13 14 15 16
			background-color: #eee;
			color: #6d6d6d;
			font-family: 'Ubuntu';
			font-size: 15px;
17 18
		}

19 20 21 22 23 24
		h1.laravel {
			font-family: 'Lobster Two', Helvetica, serif;				
			font-size: 60px;
			margin: 0 0 15px -10px;
			padding: 0;
			text-shadow: -1px 1px 1px #fff;
25 26
		}

27 28 29 30 31 32 33 34 35 36 37
		h2 {
			font-family: 'Quattrocento', serif;
			font-size: 30px;
			margin: 30px 0 0 0;
			padding: 0;
			text-shadow: -1px 1px 1px #fff;
		}

		p {
			margin: 10px 0 0 0;
			line-height: 25px;
38 39 40
		}

		pre {
41
			font-size: 12px;
42
		}
43 44 45

		pre.context {
			margin: 0; padding: 0;
46
		}
47

Taylor Otwell committed
48
		pre.highlight {
49 50 51 52
			font-weight: bold;
			color: #990000;
		}

Taylor Otwell committed
53 54 55 56 57 58 59
		#header {
			margin: 0 auto;
			margin-bottom: 15px;
			margin-top: 20px;
			width: 80%;
		}

60 61
		#wrapper {
			background-color: #fff;
62
			border-radius: 10px;
63 64 65 66 67 68 69 70
			margin: 0 auto;
			padding: 10px;
			width: 80%;
		}

		#wrapper h2:first-of-type {
			margin-top: 0;
		}
71 72 73
	</style>
</head> 
<body>
74 75 76 77
	<div id="header">
		<h1 class="laravel"><?php echo $severity; ?></h1>
	</div>

78
	<div id="wrapper"> 
79 80 81 82 83 84 85 86 87 88 89 90
		<h2>Message:</h2>

		<p><?php echo $message; ?> in <strong><?php echo basename($file); ?></strong> on line <strong><?php echo $line; ?></strong>.</p>

		<h2>Stack Trace:</h2>

		<pre><?php echo $trace; ?></pre>

		<h2>Snapshot:</h2>

		<p>
		<?php if (count($contexts) > 0): ?>
91

92
			<?php foreach($contexts as $num => $context): ?>
Taylor Otwell committed
93
				<pre class="context <?php echo ($line == $num) ? 'highlight' : ''; ?>"><?php echo htmlentities($num.': '.$context); ?></pre>
94
			<?php endforeach; ?>
95

96 97 98 99
		<?php else: ?>
			Snapshot Unavailable.
		<?php endif; ?>
		</p>
100 101 102
	</div> 
</body> 
</html>