aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/header.tt2
blob: 5e6f12d40474adb04a42d35d5a9e60bee0b731e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!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">
      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 | html %]';
	base = base.replace(/\/ajax[+][*]/, '/' + startup_tree[1] + '+*');
  	document.write('<base href="' + base + '">');
      }
      else {
  	document.write('<base href="[% base_url | html %]">');
	var base = '[% base_url | html %]';
	base = base.replace(/\/ajax[+][*]\/?/, '/');
  	document.write('<meta http-equiv="Refresh" content="0;url=' + base + '+trees">');
	use_ajax_navigation = 0;
      }
      [% END %]
    </script>
    [% IF !is_ajax %]
    <base href="[% base_url | html %]">
    [% END %]
    <script type="text/javascript" src="../.static/js/lxrng-funcs.js"></script>
    <link rel="shortcut icon" href="../.static/gfx/favicon.png" type="image/png">
    <link rel="stylesheet" href="../.static/css/lxrng.css" type="text/css" title="LXRng">

    [% javascript %]

    <script type="text/javascript">
    </script>

    <title>LXR [% context.tree | html -%]/
      [%- FOREACH elem = context.path_elements %][% elem.node | html %][% END %]
    </title>
  </head>

  <body class="full"
     [% IF is_ajax %]onload="load_content();"[% END %]
     [% IF is_popup %]onload="popup_prepare([% popup_serial %]);"[% END %]>

    <div class="heading">
      <div class="headingtop"></div>
	
      <span class="lxr_title">
	<span class="lxr_logo"><a href="..">LXR</a></span>
	<span id="current_path">
	  <a href="../[% context.vtree | html %]/">[% context.tree | html%]/</a>[%
	  FOREACH elem = context.path_elements
	  %]<a href="[% elem.path | html %]">[% elem.node | html %]</a>[%
	  END %]
	</span>
	<!-- <img src="../.static/gfx/rolldown.png" alt="History"> -->
        <span id="lxr_print"
          [% IF is_ajax || node.name.match('/$') %]style="display: none;"[% END %]>
	  <form action="+print=[% node.name | html %]" method="post" id="print_form">
	    <button type="submit" class="print">
      	      <img src="../.static/gfx/print.png" alt="Print">
            </button>
	  </form>
        </span>
        <span id="lxr_save"
          [% IF is_ajax || node.name.match('/$') %]style="display: none;"[% END %]>
	  <form action="+save=[% node.name | html %]" method="post" id="save_form">
	    <button type="submit" class="save">
      	      <img src="../.static/gfx/save.png" alt="Save">
            </button>
	  </form>
        </span>
      </span>
	
      <div class="lxr_menu">
	<span class="lxr_version">
	  <a [% IF is_ajax %]href="#" onclick="return previous_version();"[% ELSE %]
	     href="../[% context.tree | html %]+[% ver_prev | html %]/[% node.name | html %]"[% END %]>
	    <img src="../.static/gfx/left.png" alt="&lt;&lt;"></a>
	  <form action="[% node.name | html %]" method="get">
	    <span id="ver_select">
	      [% INCLUDE release_select.tt2, context = context %]
	    </span>
	  </form>
	  <a [% IF is_ajax %]href="#" onclick="return next_version();"[% ELSE %]
	     href="../[% context.tree | html %]+[% ver_next | html %]/[% node.name | html %]"[% END %]>
	    <img src="../.static/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">
	    <button type="submit">Search</button>
	  </form>
	</span>

	<span class="lxr_prefs">
	  <a href="+prefs?return=[% node.name | html %]"
	     onclick="return ajax_prefs();">
	    Prefs
	  </a>
	</span>
      </div>
      <form action="ajax+*" method="post" onsubmit="return false;">
	<input type="hidden" name="ajax_lookup" id="ajax_lookup" value="">
      </form>

      <div class="headingbottom"></div>
    </div>
    
    <div id="search_results" class="search_results"
	 [% IF search_res %]style="display: block;"[% END %]>
      [% IF search_res %][% search_res %][% END %]</div>