use "is-empty" filter in views to catch empty collections (existing way didn't work anyway)
This commit is contained in:
parent
b583d5f52a
commit
decd84534c
|
@ -32,7 +32,7 @@
|
|||
</div>
|
||||
|
||||
<div class="file-list-container">
|
||||
{% if files %}
|
||||
{% if not files|is-empty %}
|
||||
<table class="table table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{% extends "blarg/views/templates/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% if not posts %}
|
||||
|
||||
{% if posts|is-empty %}
|
||||
<div>
|
||||
<p class="text-center">There are no posts.</p>
|
||||
</div>
|
||||
|
|
Reference in a new issue