From 32aa8b091f439043ec2a4c7807366cb26eb9de19 Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Sun, 17 Feb 2008 23:05:18 +0100 Subject: Improved error handling. --- tmpl/bare_error.tt2 | 20 ++++++++++++++++++++ tmpl/error.tt2 | 3 +++ tmpl/header.tt2 | 24 ++++++++++++------------ tmpl/search_result.tt2 | 4 ++++ 4 files changed, 39 insertions(+), 12 deletions(-) create mode 100644 tmpl/bare_error.tt2 create mode 100644 tmpl/error.tt2 (limited to 'tmpl') diff --git a/tmpl/bare_error.tt2 b/tmpl/bare_error.tt2 new file mode 100644 index 0000000..03f6aeb --- /dev/null +++ b/tmpl/bare_error.tt2 @@ -0,0 +1,20 @@ + + + + + LXR Error + + + + + +
[% error | html %]
+ + diff --git a/tmpl/error.tt2 b/tmpl/error.tt2 new file mode 100644 index 0000000..b8996ac --- /dev/null +++ b/tmpl/error.tt2 @@ -0,0 +1,3 @@ +[% INCLUDE header.tt2 %] +
[% error | html %]
+[% INCLUDE footer.tt2 %] diff --git a/tmpl/header.tt2 b/tmpl/header.tt2 index 2932823..106f3bd 100644 --- a/tmpl/header.tt2 +++ b/tmpl/header.tt2 @@ -10,19 +10,19 @@ var startup_tree = location.hash.match(/^#([^/+]+)([+][^/]*|)/); if (startup_tree) { - var base = '[% base_url %]'; + var base = '[% base_url | html %]'; base = base.replace(/\/ajax[+][*]/, '/' + startup_tree[1] + '+*'); document.write(''); } else { - document.write(''); + document.write(''); document.write(''); use_ajax_navigation = 0; } [% END %] [% IF !is_ajax %] - + [% END %] @@ -32,8 +32,8 @@ - LXR [% context.tree -%]/ - [%- FOREACH elem = context.path_elements %][% elem.node %][% END %] + <title>LXR [% context.tree | html -%]/ + [%- FOREACH elem = context.path_elements %][% elem.node | html %][% END %] @@ -47,15 +47,15 @@ - [% context.tree %]/[% + [% context.tree | html%]/[% FOREACH elem = context.path_elements - %][% elem.node %][% + %][% elem.node | html %][% END %] History -