File: search_results.tmpl

package info (click to toggle)
dhelp 0.6.27
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 580 kB
  • sloc: ruby: 1,193; sh: 551; perl: 372; makefile: 77
file content (65 lines) | stat: -rw-r--r-- 2,129 bytes parent folder | download | duplicates (3)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
[% MACRO t(text) BLOCK;
       gettext.get(text);
   END; %]
<head>
<title>[% t("Debian Online Help: Search Result") %]</title>
<link rev="made" href="mailto:dhelp%40packages.debian.org" />
<link rel="stylesheet" href="[% base_url %]/doc/dhelp/css/dhelp.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
    <div id="top-bar">
        <a href="[% base_url %]/doc/HTML/index.html"><span id="logo"><img
            src="[% base_url %]/doc/dhelp/css/swirl.png" alt=""><img
            src="[% base_url %]/doc/dhelp/css/debian.png" alt="Debian"></span>
            <h1>[% t("Online Help") %]</h1></a>

        <div id="navigation-bar">
            [% IF online %]
            <a href="/cgi-bin/info2www">[% t("info pages") %]</a> |
            <a href="/cgi-bin/man/man2html">[% t("man pages") %]</a> |
            [% END %]

            <a href="[% base_url %]/doc/">[% t("documentation folder") %]</a>

            [% IF online %]
            | <form id="search-form" action="/cgi-bin/dsearch">
            <input type="text" name="search" value="[% search_terms | html %]">
            <input type="submit" value="[% t("Search") %]">
            </form>
            [% END %]
        </div>
    </div>

<h2>[% t("Search results for") %] [% search_terms %]</h2>

[% IF msg %]
<div class="info">[% msg %]</div>
[% END %]

[% IF online %]
[% INCLUDE search_pagination.tmpl %]
[% END %]

<div id="search-results">
[% FOREACH result = results %]
    <div class="result">
        <span class="rank">[% result.rank %]%</span>
        <span class="result-description">
            <a class="result-title" href="[% result.file %]">[% result.title %]</a>
            <span class="size">([% result.size %])</span>
            <span class="extract">[% result.extract %]</span>
        </span>
    </div>
[% END %]
</div>

[% IF online %]
[% INCLUDE search_pagination.tmpl %]
[% END %]

</body>
</html>