FIX: Все комментарии участника (профиль)

This commit is contained in:
Evg 2022-11-20 18:16:42 +03:00
parent 03ffa0b6e5
commit f565a1e6fa
3 changed files with 6 additions and 6 deletions

View file

@ -88,7 +88,7 @@ class ProfileController extends Controller
'/user/profile/comment',
[
'meta' => self::metadata('profile_comments', $profile),
'data' => array_merge($this->sidebar($pagesCount, $profile), ['comments' => $comments]),
'data' => array_merge($this->sidebar($pagesCount, $profile), ['comments' => $mergedArr]),
]
);
}

View file

@ -26,8 +26,8 @@
<thead>
<th class="w50">id</th>
<th><?= __('admin.info'); ?></th>
<th><?= __('admin.type'); ?></th>
<th><?= __('admin.action'); ?></th>
<th class="center"><?= __('admin.type'); ?></th>
<th class="center"><?= __('admin.action'); ?></th>
<th class="center">#</th>
</thead>
<?php foreach ($data['audits'] as $key => $audit) : ?>
@ -71,8 +71,8 @@
<?php endif; ?>
<?php endif; ?>
</td>
<td><?= __('admin.' . $audit['type_belonging']); ?></td>
<td>
<td class="center"><?= __('admin.' . $audit['type_belonging']); ?></td>
<td class="center">
<a data-id="<?= $audit['content'][$audit['action_type'] . '_id']; ?>" data-type="<?= $audit['action_type']; ?>" class="type-action text-sm">
<?php if ($audit['content'][$audit['action_type'] . '_is_deleted'] == 1) : ?>
<span class="red">

View file

@ -2,7 +2,7 @@
use Hleb\Constructor\Handlers\Request;
Request::getHead()->addStyles('/assets/css/style.css?21');
Request::getHead()->addStyles('/assets/css/style.css?7');
?>
<?= insert('/meta', ['meta' => $meta]); ?>