From e9fa4c98bb5f084739d3418ade3f0c51e34a0aa1 Mon Sep 17 00:00:00 2001 From: Arne Georg Gleditsch Date: Thu, 5 Jul 2007 00:51:08 +0200 Subject: Rebase tree. --- tmpl/content_dir.tt2 | 11 +++++++ tmpl/footer.tt2 | 3 ++ tmpl/header.tt2 | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ tmpl/line_reference.tt2 | 4 +++ tmpl/main.tt2 | 9 ++++++ tmpl/popup_main.tt2 | 28 +++++++++++++++++ tmpl/prefs.tt2 | 59 +++++++++++++++++++++++++++++++++++ tmpl/prefs_set.tt2 | 10 ++++++ tmpl/print_pdf.tt2 | 32 +++++++++++++++++++ tmpl/release_select.tt2 | 8 +++++ tmpl/search_result.tt2 | 74 ++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 319 insertions(+) create mode 100644 tmpl/content_dir.tt2 create mode 100644 tmpl/footer.tt2 create mode 100644 tmpl/header.tt2 create mode 100644 tmpl/line_reference.tt2 create mode 100644 tmpl/main.tt2 create mode 100644 tmpl/popup_main.tt2 create mode 100644 tmpl/prefs.tt2 create mode 100644 tmpl/prefs_set.tt2 create mode 100644 tmpl/print_pdf.tt2 create mode 100644 tmpl/release_select.tt2 create mode 100644 tmpl/search_result.tt2 (limited to 'tmpl') diff --git a/tmpl/content_dir.tt2 b/tmpl/content_dir.tt2 new file mode 100644 index 0000000..f5bab3f --- /dev/null +++ b/tmpl/content_dir.tt2 @@ -0,0 +1,11 @@ + +[% FOREACH link = dir_listing %] + + + + + + +[% END %] +
+ [% link.node %][% link.size %][% link.time %][% link.desc %]
diff --git a/tmpl/footer.tt2 b/tmpl/footer.tt2 new file mode 100644 index 0000000..11a09ca --- /dev/null +++ b/tmpl/footer.tt2 @@ -0,0 +1,3 @@ + + + diff --git a/tmpl/header.tt2 b/tmpl/header.tt2 new file mode 100644 index 0000000..0c5b6f6 --- /dev/null +++ b/tmpl/header.tt2 @@ -0,0 +1,81 @@ + + + + + + + + + + [% javascript %] + + + + LXR [% context.tree -%]/ + [%- FOREACH elem = context.path_elements %][% elem.node %][% END %] + + + + + +
+
+ + + lxr + + [% context.tree %]/[% + FOREACH elem = context.path_elements + %][% elem.node %][% + END %] + + + [% IF node.name.match('[^/]$') %] +
+ +
+ [% END %] +
+ +
+ + << +
+ + [% INCLUDE release_select.tt2, context = context %] + +
+ >> +
+ + +
+ + + +
+
+ + + + Prefs + + +
+
+ +
+ +
+
+ +
+ [% IF search_res %][% search_res %][% END %]
diff --git a/tmpl/line_reference.tt2 b/tmpl/line_reference.tt2 new file mode 100644 index 0000000..f68296c --- /dev/null +++ b/tmpl/line_reference.tt2 @@ -0,0 +1,4 @@ + + [% file %], line [% line %] + diff --git a/tmpl/main.tt2 b/tmpl/main.tt2 new file mode 100644 index 0000000..0b7ca51 --- /dev/null +++ b/tmpl/main.tt2 @@ -0,0 +1,9 @@ +[% INCLUDE header.tt2 %] +
+[% IF is_dir %] +[% INCLUDE content_dir.tt2 context = context, node = node %] +[% ELSE %] +[% file_content %] +[% END %] +
+[% INCLUDE footer.tt2 %] diff --git a/tmpl/popup_main.tt2 b/tmpl/popup_main.tt2 new file mode 100644 index 0000000..5fa87a4 --- /dev/null +++ b/tmpl/popup_main.tt2 @@ -0,0 +1,28 @@ + + + + + + + + + + + + LXR Lookup + + + +
+ [% search_res %] +
+ + + + + + diff --git a/tmpl/prefs.tt2 b/tmpl/prefs.tt2 new file mode 100644 index 0000000..c7f6a6d --- /dev/null +++ b/tmpl/prefs.tt2 @@ -0,0 +1,59 @@ + + + + + + + + LXR Preferences + + + +
+
+ + + lxr + + +
+ Back +
+
+
+ +
Personal preferences for this LXRng site
+ +
+
+ + Where do you want your search results to be displayed? +
    +
  1. + Replace the active source browsing window
  2. + +
  3. + Show them in a popup window (requires JavaScript enabled)
    + + If your browser limits the ability to + raise/lower windows from JavaScript (Firefox: Edit -> + Preferences -> Content -> Enable JavaScript -> Advanced -> + Allow scripts to: Raise or lower windows), make sure you + either close your search result windows or avoid hiding them + behing other windows after use.
  4. + +
  5. + Show them inside the active source browsing window + (requires JavaScript enabled) +
  6. +
+

+ (Cookies need to be enabled for LXR preferences to take effect.) +

+ +
+
+ + + diff --git a/tmpl/prefs_set.tt2 b/tmpl/prefs_set.tt2 new file mode 100644 index 0000000..735e700 --- /dev/null +++ b/tmpl/prefs_set.tt2 @@ -0,0 +1,10 @@ + + + + + + + Return to the source... + + diff --git a/tmpl/print_pdf.tt2 b/tmpl/print_pdf.tt2 new file mode 100644 index 0000000..0577159 --- /dev/null +++ b/tmpl/print_pdf.tt2 @@ -0,0 +1,32 @@ +% -*- latex -*- +\documentclass[a4paper,11pt]{book} +\usepackage[top=1cm, bottom=2cm, left=1.5cm, right=1cm]{geometry} +\usepackage[latin1]{inputenc} +\usepackage[T1]{fontenc} +%% Uncomment the following two lines to produce pdfs with a prettier +%% alternative to the computer modern fonts. +\usepackage{lmodern} +\usepackage{textcomp} +\usepackage{fancyhdr} +\usepackage{bbding} +\pagestyle{fancy} +\begin{document} +\setlength\baselineskip{7pt} +\setlength\parskip{.3\baselineskip} +\setlength\parindent{0pt} +\renewcommand{\headrulewidth}{0pt} +\fancyhead{} +\fancyfoot{} +\def\dash{\raise2.1pt\hbox{\rule{5pt}{0.3pt}}\hspace{1pt}} +\newcommand\lxrln[1]{\tiny\hspace*{-4em}\makebox[4em][r]{#1\hspace{1.5ex}}\small} +\sffamily\small +%% I kinda like the proportional fonts, but expect they won't be +%% everyone's cup of tea. Uncomment next line to use monospace font. +% \tt +\fancyfoot[RE,LO]{\textit{\sffamily [% pathdesc %]% +}} +\fancyfoot[LE,RO]{\textit{\sffamily \thepage}} +[% lineno = 1 %][% FOREACH line = lines -%] +\mbox{}[% line %][% lineno = lineno + 1 %]\\ +[% END %] +\end{document} diff --git a/tmpl/release_select.tt2 b/tmpl/release_select.tt2 new file mode 100644 index 0000000..fc51500 --- /dev/null +++ b/tmpl/release_select.tt2 @@ -0,0 +1,8 @@ + diff --git a/tmpl/search_result.tt2 b/tmpl/search_result.tt2 new file mode 100644 index 0000000..639e951 --- /dev/null +++ b/tmpl/search_result.tt2 @@ -0,0 +1,74 @@ + + +X + + +[% IF code_res and code_res.idents %] +
Code search: [% code_res.query %]
+ +[% END %] + +[% IF ident_res %] +
Identifier: +[% ident_res.ident.1 %] + +[% ident_res.query %], from +[% INCLUDE line_reference.tt2, + file = ident_res.ident.2, line = ident_res.ident.3 %] +
+References: + +[% END %] + +[% IF text_res %] +
Freetext search: [% text_res.query %] +([% text_res.total %] estimated hits)
+ +[% END %] + +[% IF file_res %] +
Filename search: [% file_res.query %]
+ +[% END %] + +[% IF ambig_res %] +
Ambiguous file reference, please choose one:
+ +[% END %] -- cgit v1.2.3