margin-top: 20px;
text-align: center;
}
+
+.acpDashboardBox__usersAwaitingApproval {
+ display: flex;
+ flex-direction: column;
+ row-gap: 10px;
+}
+
+.acpDashboardBox__usersAwaitingApproval__user {
+ position: relative;
+}
+
+.acpDashboardBox__usersAwaitingApproval__avatar {
+ align-content: center;
+}
+
+.acpDashboardBox__usersAwaitingApproval__content {
+ display: flex;
+ flex-direction: column;
+}
+
+.acpDashboardBox__usersAwaitingApproval__link::after {
+ content: "";
+ inset: 0;
+ position: absolute;
+}
+
+.acpDashboardBox__usersAwaitingApproval__meta {
+ color: var(--wcfContentDimmedText);
+ margin-top: -5px;
+
+ @include wcfFontSmall;
+}
-<ul>
+<ul class="acpDashboardBox__usersAwaitingApproval">
{foreach from=$users item='user'}
- <li>
- <div>
- {@$user->getAvatar()->getImageTag(24)}
- </div>
- <div>
- <a title="{lang}wcf.acp.user.edit{/lang}" href="{link controller='UserEdit' id=$user->userID}{/link}">{$user->username}</a>
+ <li class="acpDashboardBox__usersAwaitingApproval__user">
+ <div class="box24">
+ <div class="acpDashboardBox__usersAwaitingApproval__avatar">
+ {unsafe:$user->getAvatar()->getImageTag(24)}
+ </div>
+
+ <div>
+ <a href="{link controller='UserEdit' id=$user->userID}{/link}"
+ class="acpDashboardBox__usersAwaitingApproval__link" title="{lang}wcf.acp.user.edit{/lang}">
+ {$user->username}
+ </a>
+ <div class="acpDashboardBox__usersAwaitingApproval__meta">
+ {unsafe:$user->registrationDate|time}
+ </div>
+ </div>
</div>
</li>
{/foreach}
</ul>
-<a href="{link controller='UserQuickSearch'}mode=pendingActivation{/link}" class="button small">More</a>
+{if $usersAwaitingApproval > $users|count}
+ <div class="acpDashboardBox__cta">
+ <a href="{link controller='UserQuickSearch' mode='pendingActivation'}{/link}" class="button small">
+ {lang}wcf.global.button.showAll{/lang}
+ </a>
+ </div>
+{/if}
\ No newline at end of file
return WCF::getTPL()->fetch('usersAwaitingApprovalAcpDashboardBox', 'wcf', [
'users' => $userList->getObjects(),
'usersAwaitingApproval' => $this->getUsersAwaitingApproval(),
- ]);
+ ], true);
}
#[\Override]
if (REGISTER_ACTIVATION_METHOD & User::REGISTER_ACTIVATION_USER) {
$this->userList->getConditionBuilder()->add('emailConfirmed IS NULL');
}
+ $this->userList->sqlOrderBy = 'registrationDate DESC';
}
return $this->userList;