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:
ae6f8a0
)
login/list: visit view to emulate login/visits
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 7 Jul 2018 20:48:15 +0000
(22:48 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 7 Jul 2018 22:22:38 +0000
(
00:22
+0200)
Identical styling.
login/list.php
patch
|
blob
|
history
diff --git
a/login/list.php
b/login/list.php
index d3b1f177005ebc91be910f0af119e7dd9574690e..1f049d84494fc84eb59323cae6e97ddaa47801dc 100644
(file)
--- a/
login/list.php
+++ b/
login/list.php
@@
-18,10
+18,13
@@
print '<ul';
if (@$Place['view'] == 'avatar') {
print ' class="gallery cat"';
}
if (@$Place['view'] == 'avatar') {
print ' class="gallery cat"';
}
+else {
+ print ' class="cols"';
+}
print ">\n";
foreach ($users as $user) {
print ">\n";
foreach ($users as $user) {
- $name = $user->name ?:
ucfirst($user->login)
;
+ $name = $user->name ?:
$user->login
;
if (!empty($GLOBALS['User']['admin'])) {
$link = '/login/edit/'.$user->login;
$name = sprintf('<a href="%s">%s</a>', $link, $name);
if (!empty($GLOBALS['User']['admin'])) {
$link = '/login/edit/'.$user->login;
$name = sprintf('<a href="%s">%s</a>', $link, $name);
@@
-42,13
+45,18
@@
foreach ($users as $user) {
$avatar, $name
);
break;
$avatar, $name
);
break;
+ case 'visit':
+ if ($user->seen) {
+ $name .= sprintf(' <small class="date">%s</small>', strftime('%F %H:%M', $user->seen));
+ }
+ # continue to default
default:
if ($user->admin) {
$name .= ' <em>(beheerder)</em>';
}
}
default:
if ($user->admin) {
$name .= ' <em>(beheerder)</em>';
}
}
- print
'<li>'.$name
;
+ print
"<li>$name</li>\n"
;
}
}
-print
'</ul>'
;
+print
"</ul>\n\n"
;