| @@ 73-80 (lines=8) @@ | ||
| 70 | ], |
|
| 71 | 'badges' => function ($model) { |
|
| 72 | $badges = ''; |
|
| 73 | if (Yii::$app->user->can('support')) { |
|
| 74 | if ($model->wizzarded) { |
|
| 75 | $badges .= Label::widget(['label' => 'W', 'tag' => 'sup', 'color' => 'success']); |
|
| 76 | } |
|
| 77 | } |
|
| 78 | ||
| 79 | return $badges; |
|
| 80 | }, |
|
| 81 | ], |
|
| 82 | 'dc' => [ |
|
| 83 | 'attribute' => 'dc', |
|
| @@ 105-107 (lines=3) @@ | ||
| 102 | 'contentOptions' => ['class' => 'text-uppercase'], |
|
| 103 | 'value' => function ($model) { |
|
| 104 | $value = $model->panel ? Yii::t('hipanel:server:panel', $model->panel) : Yii::t('hipanel:server:panel', 'No control panel'); |
|
| 105 | if (Yii::$app->user->can('support')) { |
|
| 106 | $value .= $model->wizzarded ? Label::widget(['label' => 'W', 'tag' => 'sup', 'color' => 'success']) : ''; |
|
| 107 | } |
|
| 108 | ||
| 109 | return $value; |
|
| 110 | }, |
|