diff options
Diffstat (limited to 'templates/packages')
-rw-r--r-- | templates/packages/files.html | 14 | ||||
-rw-r--r-- | templates/packages/search.html | 17 |
2 files changed, 17 insertions, 14 deletions
diff --git a/templates/packages/files.html b/templates/packages/files.html index 24f55819..145bcf24 100644 --- a/templates/packages/files.html +++ b/templates/packages/files.html @@ -1,11 +1,11 @@ {% extends "base.html" %} - +{% block title %}Pkg: {{ pkg.pkgname }} - Arch Linux Package File List{% endblock %} {% block content %} - <div class="box"> - <h3>Viewing Files: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h3> - {% for file in files %} - {{ file.path }}<br /> - {% endfor %} - </div> + <div class="box"> + <h3>Viewing Files: {{ pkg.pkgname }} {{ pkg.pkgver }}-{{ pkg.pkgrel }}</h3> + {% for file in files %} + {{ file.path }}<br /> + {% endfor %} + </div> {% endblock %} 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 %} |