Browse Source

Only show listing table if we have matches

pm2
Luke Childs 8 years ago
parent
commit
11867f0e5a
  1. 4
      views/listing.html

4
views/listing.html

@ -6,6 +6,7 @@
<h2>{{ error.statusMessage }}</h2>
{% else %}
<h2>{{ title }}</h2>
{% if nodes.length %}
<table>
<thead>
<tr>
@ -30,6 +31,9 @@
{% endfor %}
</tbody>
</table>
{% else %}
<h3>No matches</h3>
{% endif %}
{% if req.query.s %}
<section class="pagination">
{% if req.query.p > 1 %}

Loading…
Cancel
Save