From ed40bc3aec6a7ef5f0d86bce1343499223811b89 Mon Sep 17 00:00:00 2001 From: Pantelis Roditis Date: Wed, 20 Mar 2024 15:00:56 +0200 Subject: [PATCH 01/18] make some items smaller --- backend/modules/frontend/views/player/index.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/backend/modules/frontend/views/player/index.php b/backend/modules/frontend/views/player/index.php index 0a771305f..48cc431d5 100644 --- a/backend/modules/frontend/views/player/index.php +++ b/backend/modules/frontend/views/player/index.php @@ -59,6 +59,8 @@ ], [ 'attribute' => 'avatar', + 'label'=>false, + 'headerOptions' => ['style' => 'width:3.5em'], 'format' => ['image', ['width' => '40px', 'class' => 'img-thumbnail']], 'value' => function ($data) { return '//' . Yii::$app->sys->offense_domain . '/images/avatars/' . $data->profile->avatar; @@ -88,7 +90,11 @@ return Html::encode($model->affiliation); }, ], - 'email:email', + [ + 'attribute'=>'email', + 'format'=>'email', + 'contentOptions' => ['class' => 'small'], + ], [ 'attribute' => 'vpn_local_address', 'label' => 'VPN IP', @@ -101,22 +107,26 @@ [ 'attribute' => 'academic', 'value' => 'academicShort', + 'contentOptions' => ['class' => 'small'], 'filter' => [0 => Yii::$app->sys->academic_0short, 1 => Yii::$app->sys->academic_1short, 2 => Yii::$app->sys->academic_2short], ], [ 'attribute' => 'status', 'format' => 'playerStatus', 'filter' => [10 => 'Enabled', 9 => 'Inactive', 8 => "Change", 0 => "Deleted",], + 'contentOptions' => ['class' => 'small'], + ], [ 'attribute' => 'type', - 'filter' => ["offense"=>"offense","defense"=>"defense"] + 'filter' => ["offense"=>"offense","defense"=>"defense"], + 'contentOptions' => ['class' => 'small'], ], [ 'attribute'=>'created', - 'contentOptions' => ['class' => 'text-small'] + 'contentOptions' => ['class' => 'small'] ], //'ts', [ From b14c5234d5859f2c6b95aeb1293437139816489b Mon Sep 17 00:00:00 2001 From: Pantelis Roditis Date: Wed, 20 Mar 2024 15:01:57 +0200 Subject: [PATCH 02/18] make timezone display optional --- frontend/themes/material/layouts/left.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/themes/material/layouts/left.php b/frontend/themes/material/layouts/left.php index e0fc55911..9b9c736f8 100644 --- a/frontend/themes/material/layouts/left.php +++ b/frontend/themes/material/layouts/left.php @@ -20,7 +20,7 @@ Avatar of <?=Html::encode(Yii::$app->user->identity->username)?>
" style="font-size: 0.75em"> user->identity->username)?> (user->identity->profile->score->points)?> pts) -
+
sys->hide_timezone):?>