mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
show rainbow ID in userdetails page
This commit is contained in:
@@ -352,6 +352,18 @@ jQuery('#{$triggerId}').on("click", function () {
|
||||
JS;
|
||||
\Nexus\Nexus::js($consumeChangeUsernameJs, 'footer', false);
|
||||
}
|
||||
|
||||
$metaKey = \App\Models\UserMeta::META_KEY_PERSONALIZED_USERNAME;
|
||||
if ($metas->has($metaKey)) {
|
||||
$rainbowID = $metas->get($metaKey)->first();
|
||||
if ($rainbowID->isValid()) {
|
||||
$props[] = sprintf(
|
||||
'<div><strong>[%s]</strong>(%s: %s)</div>',
|
||||
$rainbowID->metaKeyText, nexus_trans('label.deadline'), $rainbowID->deadline
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($props)) {
|
||||
tr_small($lang_userdetails['row_user_props'], sprintf('<div style="display: inline">%s</div>', implode(' | ', $props)), 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user