| @@ 83-89 (lines=7) @@ | ||
| 80 | 'class' => 'yii\grid\ActionColumn', |
|
| 81 | 'template' => Yii::$app->user->can('editor') ? '{view} {update} {delete} {reply}' : '{view}', |
|
| 82 | 'buttons' => [ |
|
| 83 | 'view' => function ($url, $model) { |
|
| 84 | return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', |
|
| 85 | $model->commentMedia->url . '#comment' . $model->id, [ |
|
| 86 | 'title' => Yii::t('yii', 'View'), |
|
| 87 | 'data-pjax' => '0', |
|
| 88 | ]); |
|
| 89 | }, |
|
| 90 | 'reply' => function ($url, $model) { |
|
| 91 | return Html::a('<span class="glyphicon glyphicon-share-alt"></span>', [ |
|
| 92 | 'reply', |
|
| @@ 82-88 (lines=7) @@ | ||
| 79 | 'class' => 'yii\grid\ActionColumn', |
|
| 80 | 'template' => Yii::$app->user->can('editor') ? '{view} {update} {delete} {reply}' : '{view}', |
|
| 81 | 'buttons' => [ |
|
| 82 | 'view' => function ($url, $model) { |
|
| 83 | return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', |
|
| 84 | $model->commentPost->url . '#comment-' . $model->id, [ |
|
| 85 | 'title' => Yii::t('yii', 'View'), |
|
| 86 | 'data-pjax' => '0', |
|
| 87 | ]); |
|
| 88 | }, |
|
| 89 | 'reply' => function ($url, $model) { |
|
| 90 | return Html::a('<span class="glyphicon glyphicon-share-alt"></span>', [ |
|
| 91 | 'reply', |
|