summaryrefslogtreecommitdiff
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-25 15:39:17 -0500
committerDan McGee <dan@archlinux.org>2010-07-25 15:49:06 -0500
commit727bb685878e3978eafce17498888391253ac722 (patch)
tree2872809b498565f50a71c24dff74df5565bdb74e /templates/packages
parent8ce58ee97a5ac64e6b2549258d7a0ca5f334f6e3 (diff)
Don't link to the AUR if search term is blank
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/search.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/packages/search.html b/templates/packages/search.html
index c0eff987..b3410962 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -145,7 +145,9 @@
<div class="box">
<p>We couldn't find any packages matching your query. Try searching again
using different criteria, or try
+ {% if search_form.q.data %}
<a href="http://aur.archlinux.org/packages.php?K={{ search_form.q.data }}">searching the AUR</a>
+ {% else %}searching the AUR{% endif %}
to see if the package can be found there.</p>
</div>
{% endif %}