~ubuntu-branches/ubuntu/precise/trac/precise

« back to all changes in this revision

Viewing changes to trac/search/templates/search.html

  • Committer: Bazaar Package Importer
  • Author(s): Luis Matos
  • Date: 2008-07-13 23:46:20 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080713234620-13ynpdpkbaymfg1z
Tags: 0.11-2
* Re-added python-setup-tools to build dependences. Closes: #490320 #468705
* New upstream release Closes: 489727
* Added sugestion for other vcs support available: git bazaar mercurial 
* Added spamfilter plugin to sugests
* Moved packaging from python-support to python-central
* Added an entry to the NEWS about the cgi Closes: #490275
* Updated 10_remove_trac_suffix_from_title patch to be used in 0.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html
 
2
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 
3
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml"
 
5
      xmlns:py="http://genshi.edgewall.org/"
 
6
      xmlns:xi="http://www.w3.org/2001/XInclude">
 
7
  <xi:include href="layout.html" />
 
8
  <xi:include href="macros.html" />
 
9
  <head>
 
10
    <title>Search<py:if test="query"> Results</py:if></title>
 
11
    <py:if test="results">
 
12
        <meta name="startIndex" content="${results.span[0] + 1}"/>
 
13
        <meta name="totalResults" content="$results.num_items"/>
 
14
        <meta name="itemsPerPage" content="$results.max_per_page"/>
 
15
    </py:if>
 
16
    <script type="text/javascript">
 
17
      jQuery(document).ready(function($) {$("#q").get(0).focus()});
 
18
    </script>
 
19
  </head>
 
20
  <body>
 
21
    <div id="content" class="search">
 
22
 
 
23
      <h1><label for="q">Search</label></h1>
 
24
      <form id="fullsearch" action="${href.search()}" method="get">
 
25
        <p>
 
26
          <input type="text" id="q" name="q" size="40" value="${query}" />
 
27
          <input type="hidden" name="noquickjump" value="1" />
 
28
          <input type="submit" value="${_('Search')}" />
 
29
        </p>
 
30
        <p class="filters">
 
31
          <py:for each="filter in filters">
 
32
            <input type="checkbox" id="${filter.name}" name="${filter.name}"
 
33
                   checked="${filter.active and 'checked' or None}" />
 
34
            <label for="${filter.name}">${filter.label}</label>
 
35
          </py:for>
 
36
       </p>
 
37
      </form>
 
38
 
 
39
      <py:if test="results or quickjump"><hr />
 
40
        <h2 py:if="results">
 
41
          Results <span class="numresults">(${results.displayed_items()})</span>
 
42
        </h2>
 
43
        <xi:include py:with="paginator = results" href="page_index.html" />
 
44
        <div>
 
45
          <dl id="results">
 
46
            <py:if test="quickjump">
 
47
              <dt id="quickjump">
 
48
                <a href="${quickjump.href}">Quickjump to ${quickjump.name}</a>
 
49
              </dt>
 
50
              <dd>${quickjump.description}</dd>
 
51
            </py:if>
 
52
            <py:for each="result in results">
 
53
              <dt><a href="${result.href}" class="searchable">${result.title}</a></dt>
 
54
              <dd class="searchable">${result.excerpt}</dd>
 
55
              <dd>
 
56
                <span class="author">By ${authorinfo(result.author)}</span> &mdash;
 
57
                <span class="date">${result.date}</span>
 
58
              </dd>
 
59
            </py:for>
 
60
          </dl>
 
61
        </div>
 
62
        <xi:include py:with="paginator = results" href="page_index.html" />
 
63
      </py:if>
 
64
 
 
65
      <div id="notfound" py:if="query and not (results or quickjump)">
 
66
        No matches found.
 
67
      </div>
 
68
 
 
69
      <div id="help">
 
70
        <strong>Note:</strong> See <a href="${href.wiki('TracSearch')}">TracSearch</a>
 
71
        for help on searching.
 
72
      </div>
 
73
 
 
74
    </div>
 
75
  </body>
 
76
</html>