use "is-empty" filter in views to catch empty collections (existing way didn't work anyway)

This commit is contained in:
Gered 2013-07-29 22:44:27 -04:00
parent b583d5f52a
commit decd84534c
2 changed files with 3 additions and 2 deletions

View file

@ -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>

View file

@ -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>