From 5b3a08857a4ae3cd5dcde3e3af4ab924b999cebc Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Thu, 7 Feb 2019 15:24:36 +0100 Subject: [PATCH] Fix #1683 #553: Added link to show/edit users awaiting admin approval --- protected/humhub/docs/CHANGELOG.md | 1 + protected/humhub/modules/admin/views/approval/index.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index d70bbbef5b..c339b02fed 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -14,6 +14,7 @@ HumHub Change Log - Fix: User soft deletion membership cache overwrite - Fix #3422 Stream suppressed loading logic loads unnecessary stream entries - Fix: "Back to home" button in registration broken with user approvals and guest mode activated +- Fix #1683 #553: Added link to show/edit users awaiting admin approval 1.3.8 (December 10, 2018) diff --git a/protected/humhub/modules/admin/views/approval/index.php b/protected/humhub/modules/admin/views/approval/index.php index 9a5a9814d6..a8ba686a48 100644 --- a/protected/humhub/modules/admin/views/approval/index.php +++ b/protected/humhub/modules/admin/views/approval/index.php @@ -24,16 +24,16 @@ use humhub\modules\user\grid\DisplayNameColumn; 'created_at', [ 'class' => 'yii\grid\ActionColumn', - 'options' => ['width' => '150px'], + 'options' => ['width' => '200px'], 'buttons' => [ - 'view' => function() { - return; + 'view' => function($url, $model) { + return Html::a('Edit', Url::to(['/admin/user/edit', 'id' => $model->id]), ['class' => 'btn btn-default btn-sm', 'data-ui-loader' => '']); }, 'delete' => function($url, $model) { return Html::a('Decline', Url::to(['decline', 'id' => $model->id]), ['class' => 'btn btn-danger btn-sm', 'data-ui-loader' => '']); }, 'update' => function($url, $model) { - return Html::a('Approve', Url::to(['approve', 'id' => $model->id]), ['class' => 'btn btn-primary btn-sm', 'data-ui-loader' => '']); + return Html::a('Approve', Url::to(['approve', 'id' => $model->id]), ['class' => 'btn btn-success btn-sm', 'data-ui-loader' => '']); }, ], ],