7310.5.2
by Michael Nelson
Updated with Muharem's suggested changes after reviewing. |
1 |
<tal:root
|
2 |
xmlns:tal="http://xml.zope.org/namespaces/tal" |
|
3 |
xmlns:metal="http://xml.zope.org/namespaces/metal" |
|
4 |
omit-tag=""> |
|
5 |
||
6 |
<metal:search_results define-macro="search-results"> |
|
7 |
||
8 |
<tal:comment replace="nothing"> |
|
9 |
Presents the results of a package search by views inheriting from |
|
10 |
AbstractPackageSearchView. |
|
11 |
</tal:comment>
|
|
12 |
||
13 |
<div id="search-results"> |
|
14 |
||
15 |
<tal:search_requested condition="view/search_requested"> |
|
16 |
||
17 |
<tal:batch define="batch view/batchnav/currentBatch"> |
|
18 |
||
19 |
<tal:navigation replace="structure view/batchnav/@@+navigation-links-upper" /> |
|
20 |
||
21 |
<ul class="search_results" tal:condition="batch"> |
|
22 |
<li tal:repeat="pkg batch"> |
|
23 |
<img metal:define-slot="pkg-image" src="/@@/package-binary" /> |
|
24 |
<a tal:attributes="href pkg/fmt:url; |
|
25 |
title pkg/title"
|
|
26 |
class="packagetitle" |
|
27 |
tal:content="pkg/name"/>: |
|
28 |
<div style="margin-left: 30px; font-size: 80%;" |
|
29 |
tal:content="pkg/summary"> |
|
30 |
Gee whiz special package. |
|
31 |
<span tal:replace="pkg/description" |
|
32 |
tal:condition="view/detailed"> |
|
33 |
Gee whiz special package description goes here if there are |
|
34 |
fewer than 5 matches. |
|
35 |
</span>
|
|
36 |
</div>
|
|
37 |
</li>
|
|
38 |
</ul>
|
|
39 |
||
40 |
<tal:navigation replace="structure view/batchnav/@@+navigation-links-lower" /> |
|
41 |
||
42 |
<tal:no_matches condition="not: view/matches"> |
|
43 |
||
44 |
No packages matching '<span tal:replace="view/text">amarok</span>' |
|
45 |
are published in |
|
46 |
<span tal:replace="context/displayname">hoary</span>. |
|
47 |
||
48 |
</tal:no_matches>
|
|
49 |
||
50 |
</tal:batch>
|
|
51 |
||
52 |
</tal:search_requested>
|
|
53 |
||
54 |
</div>
|
|
55 |
</metal:search_results>
|
|
12599.4.2
by Leonard Richardson
Merge from trunk. |
56 |
<metal:distroseries_localdiff_search_form
|
57 |
define-macro="distroseries-localdiff-search-form"> |
|
58 |
<tal:comment replace="nothing"> |
|
59 |
Present the filtering form used on a few archive pages. |
|
60 |
</tal:comment>
|
|
61 |
<form
|
|
62 |
id="distroseries-localdiff-search-filter" |
|
63 |
class="distroseries-localdiff-search-filter" |
|
64 |
action="" method="GET"> |
|
65 |
<div style="float:left; margin-right:1px;"> |
|
13543.2.2
by Raphael Badin
Label change 'packageset'=>'packagesets'. |
66 |
<label for="field.name_filter">Show packages with names or packagesets matching:</label> |
12599.4.2
by Leonard Richardson
Merge from trunk. |
67 |
</div>
|
68 |
<div style="float:left;"> |
|
69 |
<input
|
|
70 |
id="field.name_filter" title="Package Name" size="20" |
|
71 |
type="text" name="field.name_filter" |
|
72 |
tal:attributes="value request/field.name_filter|nothing"/> |
|
73 |
<input type="submit" value="Filter" /> |
|
7675.1071.2
by Raphael Badin
Changed search form of source package difference page to a radio button with more options to filter packages. |
74 |
<br /> |
75 |
<tal:package_type
|
|
76 |
replace="structure view/widgets/package_type" /> |
|
12599.4.2
by Leonard Richardson
Merge from trunk. |
77 |
</div>
|
78 |
<div class="clearfix"></div> |
|
79 |
</form>
|
|
80 |
||
81 |
</metal:distroseries_localdiff_search_form>
|
|
7310.5.2
by Michael Nelson
Updated with Muharem's suggested changes after reviewing. |
82 |
</tal:root>
|