git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14333f2
)
login/list: link users to edit page for admins
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 7 Jul 2018 20:34:38 +0000
(22:34 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 7 Jul 2018 21:41:08 +0000
(23:41 +0200)
Similar to login/visits.
login/list.php
patch
|
blob
|
history
diff --git
a/login/list.php
b/login/list.php
index eee2dc57a59197bc735250a7949ea7848d1d88a7..9a569d9579bdac427e40f219ea87bc8dbeea65c6 100644
(file)
--- a/
login/list.php
+++ b/
login/list.php
@@
-12,6
+12,10
@@
print '<ul class="gallery cat">';
foreach ($users as $user) {
$name = $user->name ?: ucfirst($user->login);
+ if (!empty($GLOBALS['User']['admin'])) {
+ $link = '/login/edit/'.$user->login;
+ $name = sprintf('<a href="%s">%s</a>', $link, $name);
+ }
if (file_exists("{$user->dir}/avatar.jpg")) {
$avatar = sprintf(
'<img src="%s" alt="%s" />',