We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b594b56 commit 3f6c192Copy full SHA for 3f6c192
examples/templates/_books_table.html
@@ -36,6 +36,9 @@
36
</button>
37
</td>
38
</tr>
39
+ {% empty %}
40
+ <p class="no-books text-primary">No books added yet.</p>
41
{% endfor %}
42
+
43
</tbody>
44
</table>
examples/templates/index.html
@@ -56,11 +56,7 @@ <h4>
56
{% if 'type' in request.GET %}
57
<p class="filtered-books">Filtered books.</p>
58
{% endif %}
59
- {% if books %}
60
- {% include "_books_table.html" %}
61
- {% else %}
62
- <p class="no-books text-primary">No books added yet.</p>
63
- {% endif %}
+ {% include "_books_table.html" %}
64
</div>
65
66
0 commit comments