2015-09-29 19:29:43 +02:00
|
|
|
<table>
|
2015-08-27 23:16:25 +02:00
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
foreach ($comments as $i => $comment):
|
|
|
|
if ($i > 5) {
|
|
|
|
break;
|
2015-05-04 14:59:39 +02:00
|
|
|
}
|
|
|
|
?>
|
2015-09-29 19:29:43 +02:00
|
|
|
<tr>
|
2015-10-27 16:05:43 +01:00
|
|
|
<td class="icon-col">
|
2015-09-29 19:29:43 +02:00
|
|
|
<?= $this->partial('partials/comment/comment-description.phtml', array('comment' => $comment)) ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?= $this->partial('partials/comment/comment-detail.phtml', array('comment' => $comment)) ?>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2015-08-27 23:16:25 +02:00
|
|
|
<?php endforeach ?>
|
|
|
|
</tbody>
|
2015-05-04 14:59:39 +02:00
|
|
|
</table>
|
2015-08-27 23:16:25 +02:00
|
|
|
<?php if ($comments->count() > 5): ?>
|
2015-05-04 14:59:39 +02:00
|
|
|
<p>
|
|
|
|
<?= $this->qlink(
|
2015-08-27 23:16:25 +02:00
|
|
|
sprintf($this->translate('List all %d comments'), $comments->count()),
|
2015-05-04 14:59:39 +02:00
|
|
|
$listAllLink,
|
|
|
|
null,
|
|
|
|
array(
|
2015-08-27 23:16:25 +02:00
|
|
|
'data-base-target' => '_next',
|
|
|
|
'icon' => 'down-open'
|
2015-05-04 14:59:39 +02:00
|
|
|
)
|
|
|
|
) ?>
|
|
|
|
</p>
|
2015-08-27 23:16:25 +02:00
|
|
|
<?php endif ?>
|