@@ 73-79 (lines=7) @@ | ||
70 | 'access_data' => [ |
|
71 | 'format' => 'raw', |
|
72 | 'label' => Yii::t('hipanel:hosting:account', 'Access data'), |
|
73 | 'value' => function (Account $model): string { |
|
74 | return Yii::t('hipanel:hosting:account', '{ip_label} {ip} {login_label} {login}', [ |
|
75 | 'ip_label' => Html::tag('b', Yii::t('hipanel', 'IP:')), |
|
76 | 'login_label' => Html::tag('b', Yii::t('hipanel', 'Login:')), |
|
77 | 'ip' => $model->ip, |
|
78 | 'login' => $model->login, ]); |
|
79 | }, |
|
80 | ], |
|
81 | ]); |
|
82 | } |
@@ 83-90 (lines=8) @@ | ||
80 | 'info_server' => [ |
|
81 | 'label' => Yii::t('hipanel:hosting', 'Server'), |
|
82 | 'format' => 'raw', |
|
83 | 'value' => function (Db $model): string { |
|
84 | return Yii::t('hipanel:hosting', '{host_label} {host} {dbms_label} {dbms}', [ |
|
85 | 'host_label' => Html::tag('b', Yii::t('hipanel:hosting', 'Host:')), |
|
86 | 'host' => $model->service_ip, |
|
87 | 'dbms_label' => Html::tag('b', Yii::t('hipanel:hosting', 'DBMS:')), |
|
88 | 'dbms' => $model->service, |
|
89 | ]); |
|
90 | }, |
|
91 | ], |
|
92 | 'access' => [ |
|
93 | 'label' => Yii::t('hipanel:hosting', 'Access credentials'), |