diff options
author | Ismael Carnales <icarnales@gmail.com> | 2009-10-31 16:32:48 -0200 |
---|---|---|
committer | Ismael Carnales <icarnales@gmail.com> | 2009-11-09 22:24:55 -0200 |
commit | 5ee5e5a4202310ee2210b5edbc26fb96f5f65ce8 (patch) | |
tree | 317e0d822b7c7dca5244c33fe5ef3f0108982578 /templates/packages/search.html | |
parent | bdaf336931125a4ed030459c33fd75cfee27b0a6 (diff) |
updated packages template files from code of pub
Diffstat (limited to 'templates/packages/search.html')
-rw-r--r-- | templates/packages/search.html | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/templates/packages/search.html b/templates/packages/search.html index 37ee3bc6..93b18b28 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -2,15 +2,16 @@ {% load package_extras %} {% block title %}Arch Linux - Package Search{% endblock %} {% block head %} -<script type="text/javascript" src="/media/django-jsi18n.js"></script> <script type="text/javascript" src="/media/admin_media/js/core.js"></script> {{search_form.media}} +<script type="text/javascript" src="/jsi18n/"></script> {% endblock %} {% block content %} <div class="greybox"> <h4 style="text-align: right">Search Criteria</h4> <form method="get" action="/packages/"> + <input type="hidden" name="sort" value='{{sort}}' /> <table width="100%"> <tr> <td><span class="smalltext">Arch</span></td> @@ -119,12 +120,14 @@ </td> </tr> {% endif %} - <tr> - <td colspan="3"> </td> - <td colspan="2" style="text-align:center"><input type="submit" name="adopt" value="Adopt Packages"></td> - <td colspan="1" style="text-align:center"><input type="submit" name="disown" value="Disown Packages"></td> - <td colspan="1"> </td> - </tr> + {% if user.is_authenticated %} + <tr> + <td colspan="3"> </td> + <td colspan="2" style="text-align:center"><input type="submit" name="adopt" value="Adopt Packages"></td> + <td colspan="1" style="text-align:center"><input type="submit" name="disown" value="Disown Packages"></td> + <td colspan="1"> </td> + </tr> + {% endif %} </table> </div> {% endif %} |