Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(admin): newest users page shows account creation times
Fixes Elgg#9629
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
.elgg-newest-users td + td { | ||
white-space: nowrap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,25 @@ | ||
<?php | ||
|
||
use Elgg\Views\TableColumn\ColumnFactory; | ||
|
||
$view = "admin/users/newest.css"; | ||
elgg_register_css($view, elgg_get_simplecache_url($view)); | ||
elgg_load_css($view); | ||
|
||
// newest users | ||
$users = elgg_list_entities([ | ||
'type' => 'user', | ||
'subtype'=> null, | ||
'full_view' => false, | ||
'list_type' => 'table', | ||
'columns' => [ | ||
ColumnFactory::fromView('item', elgg_echo('user')), | ||
ColumnFactory::fromProperty('email'), | ||
ColumnFactory::fromView('time_created', null, [ | ||
'format' => 'friendly', | ||
]), | ||
], | ||
'list_class' => 'elgg-newest-users', | ||
]); | ||
|
||
echo elgg_view_module('inline', elgg_echo('admin:users:newest'), $users); |