team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00282
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 470: show nothing if query is empty (WUI)
------------------------------------------------------------
revno: 470
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Thu 2013-01-03 10:58:26 +0100
message:
show nothing if query is empty (WUI)
modified:
src/alfanous-django/templates/results.html
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-django/templates/results.html'
--- src/alfanous-django/templates/results.html 2013-01-02 13:25:13 +0000
+++ src/alfanous-django/templates/results.html 2013-01-03 09:58:26 +0000
@@ -378,7 +378,9 @@
<div class='notfound'><p> {{ _("Sorry! there is no results for this search query.") }} </p></div>
<br />
{% endif %}
+ {% elif results.error %}
+ <div id='error' class='error'><p> {{ _("Error ") }} ({{ results.error.code }}) : {{ results.error.msg|linebreaksbr }}</p></div>
{% else %}
- <div id='error' class='error'><p> {{ _("Error ") }} ({{ results.error.code }}) : {{ results.error.msg|linebreaksbr }}</p></div>
+
{% endif %}
{% endblock results %}