~launchpad-pqm/launchpad/devel

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
<tal:root
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  omit-tag="">

<metal:search_results define-macro="search-results">

  <tal:comment replace="nothing">
    Presents the results of a package search by views inheriting from
    AbstractPackageSearchView.
  </tal:comment>

  <div id="search-results">

  <tal:search_requested condition="view/search_requested">

    <tal:batch define="batch view/batchnav/currentBatch">

      <tal:navigation replace="structure view/batchnav/@@+navigation-links-upper" />

      <ul class="search_results" tal:condition="batch">
        <li tal:repeat="pkg batch">
          <img metal:define-slot="pkg-image" src="/@@/package-binary" />
          <a tal:attributes="href pkg/fmt:url;
                             title pkg/title"
             class="packagetitle"
             tal:content="pkg/name"/>:
          <div style="margin-left: 30px; font-size: 80%;"
               tal:content="pkg/summary">
            Gee whiz special package.
            <span tal:replace="pkg/description"
                  tal:condition="view/detailed">
              Gee whiz special package description goes here if there are
              fewer than 5 matches.
            </span>
          </div>
        </li>
      </ul>

      <tal:navigation replace="structure view/batchnav/@@+navigation-links-lower" />

      <tal:no_matches condition="not: view/matches">

        No packages matching '<span tal:replace="view/text">amarok</span>'
        are published in
        <span tal:replace="context/displayname">hoary</span>.

      </tal:no_matches>

    </tal:batch>

  </tal:search_requested>

  </div>
</metal:search_results>
<metal:distroseries_localdiff_search_form
       define-macro="distroseries-localdiff-search-form">
  <tal:comment replace="nothing">
    Present the filtering form used on a few archive pages.
  </tal:comment>
  <form
    id="distroseries-localdiff-search-filter"
    class="distroseries-localdiff-search-filter"
    action="" method="GET">
    <div style="float:left; margin-right:1px;">
      <label for="field.name_filter">Show packages with names or packagesets matching:</label>
    </div>
    <div style="float:left;">
      <input
        id="field.name_filter" title="Package Name" size="20"
        type="text" name="field.name_filter"
        tal:attributes="value request/field.name_filter|nothing"/>
      <input type="submit" value="Filter" />
     <br />
     <tal:package_type
       replace="structure view/widgets/package_type" />
    </div>
    <div class="clearfix"></div>
  </form>

</metal:distroseries_localdiff_search_form>
</tal:root>