Don't link to the AUR if search term is blank
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
8ce58ee97a
commit
727bb68587
@ -145,7 +145,9 @@ <h3>Package Search</h3>
|
|||||||
<div class="box">
|
<div class="box">
|
||||||
<p>We couldn't find any packages matching your query. Try searching again
|
<p>We couldn't find any packages matching your query. Try searching again
|
||||||
using different criteria, or try
|
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>
|
<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>
|
to see if the package can be found there.</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user