aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/content_dir.tt22
-rw-r--r--tmpl/footer.tt23
-rw-r--r--tmpl/header.tt265
-rw-r--r--tmpl/popup_main.tt212
-rw-r--r--tmpl/prefs.tt223
-rw-r--r--tmpl/prefs_set.tt28
-rw-r--r--tmpl/release_select.tt22
-rw-r--r--tmpl/tree_list.tt239
8 files changed, 103 insertions, 51 deletions
diff --git a/tmpl/content_dir.tt2 b/tmpl/content_dir.tt2
index f5bab3f..b4a3f30 100644
--- a/tmpl/content_dir.tt2
+++ b/tmpl/content_dir.tt2
@@ -1,4 +1,4 @@
-<table class="directory">
+<table class="directory" id="content_dir">
[% FOREACH link = dir_listing %]
<tr class="node">
<td class="name">
diff --git a/tmpl/footer.tt2 b/tmpl/footer.tt2
index 11a09ca..2c83414 100644
--- a/tmpl/footer.tt2
+++ b/tmpl/footer.tt2
@@ -1,3 +1,6 @@
+<div class="footer">
+The original LXR software by the <a href="http://sourceforge.net/projects/lxr">LXR community</a>, this experimental version by <a href="mailto:lxr@linux.no">lxr@linux.no</a>.
+</div>
</body>
</html>
diff --git a/tmpl/header.tt2 b/tmpl/header.tt2
index 0b07111..12c2b8b 100644
--- a/tmpl/header.tt2
+++ b/tmpl/header.tt2
@@ -1,31 +1,34 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- [% IF is_ajax %]
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
- var tree = location.hash.match(/^#([^/+]+)([+][^/]*|)/);
- if (tree) {
+ var use_ajax_navigation = [% IF is_ajax %]1[% ELSE %]0[% END %];
+ var use_popup_navigation = [% IF is_popup %]1[% ELSE %]0[% END %];
+ [% IF is_ajax %]
+
+ var startup_tree = location.hash.match(/^#([^/+]+)([+][^/]*|)/);
+ if (startup_tree) {
var base = '[% base_url %]';
- base = base.replace(/\/ajax[+][*]/, '/' + tree[1] + '+*');
- document.write('<base href="' + base + '" />');
+ base = base.replace(/\/ajax[+][*]/, '/' + startup_tree[1] + '+*');
+ document.write('<base href="' + base + '">');
}
else {
- document.write('<base href="[% base_url %]" />');
+ document.write('<meta http-equiv="Refresh" content="1;+trees">');
+ use_ajax_navigation = 0;
}
+ [% END %]
</script>
- [% ELSE %]
- <base href="[% base_url %]" />
+ [% IF !is_ajax %]
+ <base href="[% base_url %]">
[% END %]
<script type="text/javascript" src="../../js/lxrng-funcs.js"></script>
- <link rel="stylesheet" href="../../css/lxrng.css" type="text/css" title="LXRng" />
+ <link rel="stylesheet" href="../../css/lxrng.css" type="text/css" title="LXRng">
[% javascript %]
<script type="text/javascript">
- var use_ajax_navigation=[% IF is_ajax %]1[% ELSE %]0[% END %];
- var use_popup_navigation=[% IF is_popup %]1[% ELSE %]0[% END %];
</script>
<title>LXR [% context.tree -%]/
@@ -48,30 +51,36 @@
%]<a href="[% elem.path %]">[% elem.node %]</a>[%
END %]
</span>
- <img src="../../gfx/rolldown.png" />
- <!-- TODO: appears to break w. ajax nav. -->
- [% IF node.name.match('[^/]$') %]
- <form action="+print=[% node.name %]" method="post">
- <button type="submit" class="print"><img src="../../gfx/print.png"></button>
- </form>
- [% END %]
+ <img src="../../gfx/rolldown.png" alt="History">
+ <span id="lxr_print"
+ [% IF is_ajax || node.name.match('/$') %]style="display: none;"[% END %]>
+ <form action="+print=[% node.name %]" method="post" id="print_form">
+ <button type="submit" class="print">
+ <img src="../../gfx/print.png" alt="Print">
+ </button>
+ </form>
+ </span>
</span>
<div class="lxr_menu">
<span class="lxr_version">
- <img src="../../gfx/left.png" alt="&lt;&lt;"/>
+ <a [% IF is_ajax %]href="#" onclick="return previous_version();"[% ELSE %]
+ href="../[% context.tree %]+[% ver_prev %]/[% node.name %]"[% END %]>
+ <img src="../../gfx/left.png" alt="&lt;&lt;"></a>
<form action="[% node.name %]" method="get">
<span id="ver_select">
[% INCLUDE release_select.tt2, context = context %]
</span>
</form>
- <img src="../../gfx/right.png" alt="&gt;&gt;"/>
+ <a [% IF is_ajax %]href="#" onclick="return next_version();"[% ELSE %]
+ href="../[% context.tree %]+[% ver_next %]/[% node.name %]"[% END %]>
+ <img src="../../gfx/right.png" alt="&gt;&gt;"></a>
</span>
<span class="lxr_search">
<form action="+search" method="post" onsubmit="return do_search(this);">
- <input type="hidden" name="navtarget" value="" />
- <input type="text" name="search" id="search" />
+ <input type="hidden" name="navtarget" value="">
+ <input type="text" name="search" id="search">
<button type="submit">Search</button>
</form>
</span>
@@ -83,8 +92,8 @@
</a>
</span>
</div>
- <form action="+ajax" method="post" onsubmit="return false;">
- <input type="hidden" name="ajax_lookup" id="ajax_lookup" value="" />
+ <form action="ajax+*" method="post" onsubmit="return false;">
+ <input type="hidden" name="ajax_lookup" id="ajax_lookup" value="">
</form>
<div class="headingbottom"></div>
diff --git a/tmpl/popup_main.tt2 b/tmpl/popup_main.tt2
index 5fa87a4..11cfc73 100644
--- a/tmpl/popup_main.tt2
+++ b/tmpl/popup_main.tt2
@@ -1,12 +1,12 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
<head>
- <base href="[% base_url %]" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <base href="[% base_url %]">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="../../js/lxrng-funcs.js"></script>
- <link rel="stylesheet" href="../../css/lxrng.css" type="text/css" title="LXRng" />
+ <link rel="stylesheet" href="../../css/lxrng.css" type="text/css" title="LXRng">
<script type="text/javascript">
var use_ajax_navigation=[% IF is_ajax %]1[% ELSE %]0[% END %];
diff --git a/tmpl/prefs.tt2 b/tmpl/prefs.tt2
index 6246ac6..a7fc223 100644
--- a/tmpl/prefs.tt2
+++ b/tmpl/prefs.tt2
@@ -1,10 +1,10 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="../../js/lxrng-funcs.js"></script>
- <link rel="stylesheet" href="../../css/lxrng.css" type="text/css" title="LXRng" />
+ <link rel="stylesheet" href="../../css/lxrng.css" type="text/css" title="LXRng">
<title id="title">LXR Preferences</title>
</head>
@@ -15,6 +15,7 @@
<span class="lxr_title">
<span class="lxr_l">l</span><span class="lxr_x">x</span><span class="lxr_r">r</span>
+ Personal preferences for this LXRng site
</span>
<div class="lxr_menu">
@@ -23,19 +24,18 @@
<div class="headingbottom"></div>
</div>
- <div class="pref_heading">Personal preferences for this LXRng site</div>
-
+ <p>
<form method="post" action="+prefs">
<div>
- <input type="hidden" name="return" value="[% return %]" />
+ <input type="hidden" name="return" value="[% return %]">
Where do you want your search results to be displayed?
<ol>
<li><input type="radio" name="resultloc" value="replace"
- [% IF is_replace %]checked[% END %]/>
+ [% IF is_replace %]checked[% END %]>
Replace the active source browsing window</li>
<li><input type="radio" name="resultloc" value="popup"
- [% IF is_popup %]checked[% END %]/>
+ [% IF is_popup %]checked[% END %]>
Show them in a popup window (requires JavaScript enabled)<br>
<font size="-1"><em>If your browser limits the ability to
@@ -46,11 +46,12 @@
behind other windows after use.</em></font></li>
<li><input type="radio" name="resultloc" value="ajax"
- [% IF is_ajax %]checked[% END %]/>
+ [% IF is_ajax %]checked[% END %]>
Show them inside the active source browsing window
(requires JavaScript enabled)
</li>
</ol>
+ </p>
<p>
(Cookies need to be enabled for LXR preferences to take effect.)
</p>
diff --git a/tmpl/prefs_set.tt2 b/tmpl/prefs_set.tt2
index 735e700..47c82d0 100644
--- a/tmpl/prefs_set.tt2
+++ b/tmpl/prefs_set.tt2
@@ -1,8 +1,8 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
<head>
- <meta http-equiv="refresh" content="0;url=[% return %]" />
+ <meta http-equiv="refresh" content="0;url=[% return %]">
</head>
<body onload="location.href='[% return %]';">
<small><a href="[% return %]">Return to the source...</a></small>
diff --git a/tmpl/release_select.tt2 b/tmpl/release_select.tt2
index fc51500..2e12023 100644
--- a/tmpl/release_select.tt2
+++ b/tmpl/release_select.tt2
@@ -1,4 +1,4 @@
-<select name="v" id="ver_list"
+<select name="v" id="v"
onchange="update_version(this, '[% context.base_url %]', '[% context.tree %]', '[% context.default_release %]', '[% context.path %]');">
[% FOREACH v = context.all_releases %]
<option value="[% v %]"
diff --git a/tmpl/tree_list.tt2 b/tmpl/tree_list.tt2
new file mode 100644
index 0000000..deb0237
--- /dev/null
+++ b/tmpl/tree_list.tt2
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <script type="text/javascript" src="../js/lxrng-funcs.js"></script>
+ <link rel="stylesheet" href="../css/lxrng.css" type="text/css" title="LXRng">
+
+ <title id="title">LXR Inventory</title>
+ </head>
+ <body>
+
+ <div class="heading">
+ <div class="headingtop"></div>
+
+ <span class="lxr_title">
+ <span class="lxr_l">l</span><span class="lxr_x">x</span><span class="lxr_r">r</span>
+ Inventory for this LXRng site
+ </span>
+
+ <div class="lxr_menu">
+ <span class="lxr_prefs">
+ <a href="+trees/+prefs?return=..">Prefs</a>
+ </span>
+ </div>
+ <div class="headingbottom"></div>
+ </div>
+
+ <p>
+ <ul>
+ <li><a href="linux">Linux 2.6.11 -</a>
+ <li><a href="linux-bk">Linux 2.5.0 - 2.6.11</a>
+ <li><a href="linux-old">Linux 0.01 - 2.4.31</a>
+ <li><a href="linuxbiosv2">LinuxBIOS v2</a>
+ </ul>
+ </p>
+ </body>
+</html>
+[% INCLUDE footer.tt2 %]