szurubooru/src/Views/post-list.phtml
Marcin Kurczewski bc43883339 Closed #54 - added mass tag
- Moved tag forms to separate files
- Tag forms got tag autocompletion
2013-10-29 23:00:21 +01:00

21 lines
675 B
PHTML

<?php if (isset($this->context->source) and $this->context->source == 'mass-tag' and PrivilegesHelper::confirm(Privilege::MassTag)): ?>
<?php $this->renderFile('tag-mass-tag') ?>
<?php endif ?>
<?php if (empty($this->context->transport->posts)): ?>
<p class="alert alert-warning">No posts to show.</p>
<?php else: ?>
<div class="posts-wrapper">
<div class="posts paginator-content">
<?php foreach ($this->context->transport->posts as $post): ?>
<?php $this->context->post = $post ?>
<?php echo $this->renderFile('post-small') ?>
<?php endforeach ?>
</div>
<div class="clear"></div>
</div>
<?php
$this->renderFile('paginator');
?>
<?php endif ?>