2 {% load package_extras %}
3 {% extends
"base.html" %}
6 <script type=
"text/JavaScript" src=
"/media/calendar.js"></script>
7 <link href=
"/media/calendar.css" rel=
"stylesheet" type=
"text/css" />
12 <h4 style=
"text-align: right">Search Criteria
</h4>
14 {% print_errors errors %}
17 <form method=
"get" action=
"/packages/search/">
20 <td><span class=
"smalltext">Repository
</span></td>
21 <td><span class=
"smalltext">Category
</span></td>
22 <td><span class=
"smalltext">Keywords
</span></td>
23 <td><span class=
"smalltext">Last Update
</span></td>
24 <td><span class=
"smalltext">Per Page
</span></td>
28 <option value=
"all">All
</option>
30 <option value=
"{{ r.name }}"{% ifequal repo r.name %} selected{% endifequal %}
>{{ r.name|capfirst }}
</option>
34 <select name=
"category">
35 <option value=
"all">All
</option>
36 {% for c in categories %}
37 <option value=
"{{ c.category }}"{% ifequal category c.category %} selected{% endifequal %}
>{{ c.category|capfirst }}
</option>
41 <input type=
"text" name=
"q" value=
"{{ query|escape }}" size=
"30" maxlength=
"200" />
43 <input type=
"text" name=
"lastupdate" value=
"{{ lastupdate|escape }}" size=
"10" maxlength=
"10" id=
"f_lastupdate" /> <button type=
"reset" id=
"f_trigger">...
</button>
44 <script type=
"text/javascript">
46 inputField
: "f_lastupdate", // id of the input field
47 ifFormat
: "%Y-%m-%d", // format of the input field
48 showsTime
: false, // will display a time selector
49 button
: "f_trigger", // trigger for the calendar (button ID)
50 singleClick
: true, // double-click mode
51 step
: 1 // show all years in drop-down boxes (instead of every other year as default)
56 <option value=
"50"{% ifequal limit
50 %} selected{% endifequal %}
>50</option>
57 <option value=
"100"{% ifequal limit
100 %} selected{% endifequal %}
>100</option>
58 <option value=
"250"{% ifequal limit
250 %} selected{% endifequal %}
>250</option>
59 <option value=
"0"{% ifequal limit
0 %} selected{% endifequal %}
>All
</option>
62 <input type=
"submit" value=
" Search " />
72 <table class=
"results" width=
"100%">
74 {% if not user.is_anonymous %}
75 <form method=
"post" action=
"/packages/update/">
78 <th><a href=
"{% buildsortqs "repo
" %}">Repo
</a></th>
79 <th><a href=
"{% buildsortqs "category
" %}">Category
</a></th>
80 <th><a href=
"{% buildsortqs "pkgname
" %}">Name
</a></th>
83 <th><a href=
"{% buildsortqs "last_update
" %}">Last Updated
</a></th>
85 {% for pkg in results %}
86 <tr class=
"{% cycle pkgr2,pkgr1 %}">
87 {% if not user.is_anonymous %}
88 <td><input type=
"checkbox" name=
"pkgid" value=
"{{ pkg.id }}" /></td>
90 <td>{{ pkg.repo.name }}
</td>
91 <td>{{ pkg.category.category }}
</td>
92 <td><a href=
"{{ pkg.get_absolute_url }}">{{ pkg.pkgname }}
</a></td>
93 {% if pkg.needupdate %}
94 <td><span style=
"color:red">{{ pkg.pkgver }}-{{ pkg.pkgrel }}
</span></td>
96 <td>{{ pkg.pkgver }}-{{ pkg.pkgrel }}
</td>
98 <td>{{ pkg.pkgdesc }}
</td>
99 <td>{{ pkg.last_update|date:
"Y-m-d" }}
</td>
103 <td colspan=
"2" style=
"font-size:x-small">{% if prevpage %}
<br /><a href=
"{{ prevpage }}"><<< Prev
</a>{% endif %}
</td>
104 <td colspan=
"2"> </td>
105 <td colspan=
"2" style=
"font-size:x-small;text-align:right">{% if nextpage %}
<br /><a href=
"{{ nextpage }}">Next
>>></a>{% endif %}
</td>
107 {% if not user.is_anonymous %}
109 <td colspan=
"3"> </td>
110 <td colspan=
"2" style=
"text-align:center"><input type=
"submit" name=
"adopt" value=
"Adopt Packages"></td>
111 <td colspan=
"1" style=
"text-align:center"><input type=
"submit" name=
"disown" value=
"Disown Packages"></td>
112 <td colspan=
"1"> </td>