summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-25 22:39:17 +0200
committerDan McGee <dan@archlinux.org>2010-07-25 22:49:06 +0200
commit727bb685878e3978eafce17498888391253ac722 (patch)
tree2872809b498565f50a71c24dff74df5565bdb74e
parent8ce58ee97a5ac64e6b2549258d7a0ca5f334f6e3 (diff)
downloadarchweb-727bb685878e3978eafce17498888391253ac722.tar.gz
archweb-727bb685878e3978eafce17498888391253ac722.tar.xz
Don't link to the AUR if search term is blank
Signed-off-by: Dan McGee <dan@archlinux.org>
-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 c0eff98..b341096 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 %}