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

Loading…
Cancel
Save