From: Marcel Werk Date: Tue, 26 Oct 2021 14:44:39 +0000 (+0200) Subject: Show online status indicator in user management X-Git-Tag: 5.5.0_Alpha_1~347 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e013e612a2bcca6c5fdb2c71424849d5c465d7c2;p=GitHub%2FWoltLab%2FWCF.git Show online status indicator in user management Closes #4568 --- diff --git a/wcfsetup/install/files/acp/templates/userList.tpl b/wcfsetup/install/files/acp/templates/userList.tpl index bc3c70f01f..afa23c33d9 100644 --- a/wcfsetup/install/files/acp/templates/userList.tpl +++ b/wcfsetup/install/files/acp/templates/userList.tpl @@ -188,14 +188,25 @@ {foreach from=$columnHeads key=column item=columnLanguageVariable} - {if $column === 'registrationDate'} - - {if $__wcf->session->getPermission('admin.user.canViewIpAddress') && $user->registrationIpAddress} - {$user->getRegistrationIpAddress()} + {if $column === 'lastActivityTime'} + + {if $user->isOnline()} + {lang}wcf.user.online{/lang} + + {else} + {if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if} {/if} - {/if} - {if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if} + {else} + {if $column === 'registrationDate'} + + {if $__wcf->session->getPermission('admin.user.canViewIpAddress') && $user->registrationIpAddress} + {$user->getRegistrationIpAddress()} + {/if} + + {/if} + {if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if} + {/if} {/foreach} {event name='columns'} diff --git a/wcfsetup/install/files/style/ui/userProfile.scss b/wcfsetup/install/files/style/ui/userProfile.scss index c8c710f062..15f79b2cbe 100644 --- a/wcfsetup/install/files/style/ui/userProfile.scss +++ b/wcfsetup/install/files/style/ui/userProfile.scss @@ -376,3 +376,11 @@ } } } + +.userOnlineIndicator { + background-color: rgba(0, 153, 0, 1); + border-radius: 50%; + display: inline-block; + height: 8px; + width: 8px; +}