Added "no posts to show" warning

This commit is contained in:
Marcin Kurczewski 2013-10-09 12:19:42 +02:00
parent 65e1a52b20
commit 1bbebfa640

View file

@ -1,5 +1,7 @@
<?php if (!empty($this->context->transport->errorMessage)): ?>
<p class="alert alert-error"><?php echo $this->context->transport->errorMessage ?></p>
<?php elseif (empty($this->context->transport->posts)): ?>
<p class="alert alert-warning">No posts to show.</p>
<?php else: ?>
<div class="posts">
<?php foreach ($this->context->transport->posts as $post): ?>