@@ -32,7 +32,7 @@ |
||
| 32 | 32 | 'label' => Yii::t('AdminModule.views_group_index', 'Members'), |
| 33 | 33 | 'format' => 'raw', |
| 34 | 34 | 'options' => ['style' => 'text-align:center;'], |
| 35 | - 'value' => function ($data) { |
|
| 35 | + 'value' => function($data) { |
|
| 36 | 36 | return $data->getGroupUsers()->count(); |
| 37 | 37 | } |
| 38 | 38 | ], |
@@ -39,9 +39,9 @@ |
||
| 39 | 39 | 'filter' => \yii\jui\DatePicker::widget([ |
| 40 | 40 | 'model' => $searchModel, |
| 41 | 41 | 'attribute' => 'last_login', |
| 42 | - 'options' => ['style' => 'width:100%;' , 'class' => 'form-control'], |
|
| 42 | + 'options' => ['style' => 'width:100%;', 'class' => 'form-control'], |
|
| 43 | 43 | ]), |
| 44 | - 'value' => function ($data) { |
|
| 44 | + 'value' => function($data) { |
|
| 45 | 45 | return ($data->last_login == NULL) ? Yii::t('AdminModule.views_user_index', 'never') : Yii::$app->formatter->asDate($data->last_login); |
| 46 | 46 | } |
| 47 | 47 | ], |
@@ -1,23 +1,23 @@ |
||
| 1 | 1 | <div class="row"> |
| 2 | 2 | <div class="col-sm-8"> |
| 3 | 3 | <?php |
| 4 | - if ($showProfilePostForm) { |
|
| 5 | - echo \humhub\modules\post\widgets\Form::widget(['contentContainer' => \Yii::$app->user->getIdentity()]); |
|
| 6 | - } |
|
| 7 | - ?> |
|
| 4 | + if ($showProfilePostForm) { |
|
| 5 | + echo \humhub\modules\post\widgets\Form::widget(['contentContainer' => \Yii::$app->user->getIdentity()]); |
|
| 6 | + } |
|
| 7 | + ?> |
|
| 8 | 8 | <?php |
| 9 | - echo \humhub\modules\content\widgets\Stream::widget([ |
|
| 10 | - 'streamAction' => '//dashboard/dashboard/stream', |
|
| 11 | - 'showFilters' => true, |
|
| 12 | - 'messageStreamEmpty' => Yii::t('DashboardModule.views_dashboard_index', '<b>Your dashboard is empty!</b><br>Post something on your profile or join some spaces!'), |
|
| 13 | - ]); |
|
| 14 | - ?> |
|
| 9 | + echo \humhub\modules\content\widgets\Stream::widget([ |
|
| 10 | + 'streamAction' => '//dashboard/dashboard/stream', |
|
| 11 | + 'showFilters' => true, |
|
| 12 | + 'messageStreamEmpty' => Yii::t('DashboardModule.views_dashboard_index', '<b>Your dashboard is empty!</b><br>Post something on your profile or join some spaces!'), |
|
| 13 | + ]); |
|
| 14 | + ?> |
|
| 15 | 15 | </div> |
| 16 | 16 | <div class="col-sm-4"> |
| 17 | 17 | <?php |
| 18 | - echo \humhub\modules\dashboard\widgets\Sidebar::widget(['widgets' => [ |
|
| 19 | - [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/dashboard/dashboard/stream'], ['sortOrder' => 150]], |
|
| 20 | - ]]); |
|
| 21 | - ?> |
|
| 18 | + echo \humhub\modules\dashboard\widgets\Sidebar::widget(['widgets' => [ |
|
| 19 | + [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/dashboard/dashboard/stream'], ['sortOrder' => 150]], |
|
| 20 | + ]]); |
|
| 21 | + ?> |
|
| 22 | 22 | </div> |
| 23 | 23 | </div> |