UX: Комментарии
This commit is contained in:
parent
cd2e2d2146
commit
f215b54f18
|
@ -16,7 +16,7 @@ foreach ($comments as $comment) :
|
|||
</div>
|
||||
<div><?= Html::votes($comment, 'answer'); ?></div>
|
||||
</div>
|
||||
<a class="block cut-off" href="<?= post_slug($comment['post_id'], $comment['post_slug']); ?>#answer_<?= $comment['answer_id']; ?>">
|
||||
<a class="block" href="<?= post_slug($comment['post_id'], $comment['post_slug']); ?>#answer_<?= $comment['answer_id']; ?>">
|
||||
<?= $comment['post_title']; ?>
|
||||
</a>
|
||||
<div class="ind-first-p max-w780"><?= markdown($comment['answer_content']); ?></div>
|
||||
|
@ -34,7 +34,7 @@ foreach ($comments as $comment) :
|
|||
</div>
|
||||
<div><?= Html::votes($comment, 'comment'); ?></div>
|
||||
</div>
|
||||
<a class="block cut-off" href="<?= post_slug($comment['post_id'], $comment['post_slug']); ?>#comment_<?= $comment['comment_id']; ?>">
|
||||
<a class="block" href="<?= post_slug($comment['post_id'], $comment['post_slug']); ?>#comment_<?= $comment['comment_id']; ?>">
|
||||
<?= $comment['post_title']; ?>
|
||||
</a>
|
||||
<div class="ind-first-p"><?= markdown($comment['comment_content']); ?></div>
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
<main>
|
||||
<div class="flex justify-between mb20">
|
||||
<ul class="nav">
|
||||
<?= insert('/_block/navigation/nav', ['list' => config('navigation/nav.comments')]); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if (!empty($data['comments'])) : ?>
|
||||
<?= insert('/content/comment/comment', ['comments' => $data['comments']]); ?>
|
||||
<div class="indent-body">
|
||||
<div class="flex justify-between mb20">
|
||||
<ul class="nav">
|
||||
<?= insert('/_block/navigation/nav', ['list' => config('navigation/nav.comments')]); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if (!empty($data['comments'])) : ?>
|
||||
<?= insert('/content/comment/comment', ['comments' => $data['comments']]); ?>
|
||||
|
||||
<?php $path = ($data['sheet'] == 'deleted') ? url('comments.deleted') : '/comments'; ?>
|
||||
<?= Html::pagination($data['pNum'], $data['pagesCount'], false, $path); ?>
|
||||
<?php else : ?>
|
||||
<?= insert('/_block/no-content', ['type' => 'small', 'text' => __('app.no_comments'), 'icon' => 'info']); ?>
|
||||
<?php endif; ?>
|
||||
<?php $path = ($data['sheet'] == 'deleted') ? url('comments.deleted') : '/comments'; ?>
|
||||
<?= Html::pagination($data['pNum'], $data['pagesCount'], false, $path); ?>
|
||||
<?php else : ?>
|
||||
<?= insert('/_block/no-content', ['type' => 'small', 'text' => __('app.no_comments'), 'icon' => 'info']); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</main>
|
||||
<aside>
|
||||
<div class="box bg-beige sticky top-sm">
|
||||
|
|
Loading…
Reference in a new issue