From: Andy Grundman Date: Wed, 2 Nov 2005 20:05:17 +0000 (+0000) Subject: Applied more xhtml tweaks from LTJake X-Git-Tag: 5.7099_04~1042 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=9619f23cf3582248bc6a324a975f37406e1efad4 Applied more xhtml tweaks from LTJake --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index b85ac7f..66dd7d3 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -646,7 +646,8 @@ sub welcome_message { float: right; margin-left: 10px; } - b#appname { + span#appname { + font-weight: bold; font-size: 1.6em; } @@ -654,7 +655,7 @@ sub welcome_message {
-

$name on Catalyst +

$name on Catalyst $VERSION

diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 544116d..23df2a1 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -99,10 +99,11 @@ sub finalize_error { # For pretty dumps local $Data::Dumper::Terse = 1; $error = join '', - map { '' . encode_entities($_) . '' } + map { '

' . encode_entities($_) . '

' } @{ $c->error }; $error ||= 'No output'; $title = $name = "$name on Catalyst $Catalyst::VERSION"; + $name = "

$name

"; # Don't show context in the dump delete $c->req->{_context}; @@ -124,12 +125,7 @@ sub finalize_error { my $name = $dump->[0]; my $value = encode_entities( Dumper $dump->[1] ); push @infos, sprintf <<"EOF", $name, $value; -
- - %s - -
-
+

%s

%s
@@ -189,6 +185,7 @@ EOF color: #ddd; } div.box { + position: relative; background-color: #ccc; border: 1px solid #aaa; padding: 4px; @@ -224,6 +221,20 @@ EOF overflow: auto; white-space: pre; } + div.name h1, div.error p { + margin: 0; + } + h2 { + margin-top: 0; + margin-bottom: 10px; + font-size: medium; + font-weight: bold; + text-decoration: underline; + } + h1 { + font-size: medium; + font-weight: normal; + }