title = Yii::t('post', 'Comments'); $this->params['breadcrumbs'][] = $this->title; ?>
$dataProvider, 'filterModel' => $searchModel, 'columns' => [ [ 'attribute' => 'id', 'options' => ['style' => 'width: 40px;'], 'contentOptions' => ['class' => 'text-center'], ], [ 'attribute' => 'text', 'value' => function (PostComment $model) { return StringHelper::truncate(strip_tags($model->text), 100); }, ], [ 'attribute' => 'created_at', 'format' => ['datetime', 'php:d.m.Y H:i'], 'options' => ['style' => 'width: 60px;'], 'contentOptions' => ['class' => 'text-center'], ], [ 'attribute' => 'active', 'filter' => $searchModel->activeList(), 'format' => 'boolean', 'contentOptions' => ['style' => 'width: 150px'], ], [ 'class' => ActionColumn::class, 'options' => ['style' => 'width: 100px;'], 'contentOptions' => ['class' => 'text-center'], ], ], ]); ?>