Browse Source

Only show search error on search pages

pm2
Luke Childs 8 years ago
parent
commit
827f0d1d37
  1. 2
      views/listing.html

2
views/listing.html

@ -3,7 +3,7 @@
{% block main %} {% block main %}
{% if error %} {% if error %}
<h2>{{ 'Bad Search Query' if error.statusCode == 400 else error.statusMessage }}</h2> <h2>{{ 'Bad Search Query' if error.statusCode == 400 and req.query.s else error.statusMessage }}</h2>
{% else %} {% else %}
<h2>{{ title }}</h2> <h2>{{ title }}</h2>
{% if nodes.length %} {% if nodes.length %}

Loading…
Cancel
Save