Merge branch 'castro' into castro_dec2023

This commit is contained in:
hackish 2023-12-06 11:04:03 -08:00
commit ccfae13cf7
4 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ block title
h1(style="margin-bottom: 0;")
a(href='..') <
| #{config.siteTitle}
p= lang('ADMIN_USER_EDIT_EDITING_USER', user._id)
p= lang('ADMIN_USER_EDIT_EDITING_USER', user._id.endsWith('_') ? user._id.replace(/_$/, ' (Guest)') : user._id)
block content
.columns

View file

@ -3,7 +3,7 @@ extends layout.pug
block content
h2= lang('ADMIN_SETTINGS_USERS_HEADER')
each user in users
span.is-size-6.inline= user.id
span.is-size-6.inline= user.id.endsWith('_') ? user.id.replace(/_$/, ' (Guest)') : user.id
a(href=`${_CC.config.base}admin-settings/edit/${user.id}`)
span.is-size-7.icon.has-text-info
i.fas.fa-edit

View file

@ -128,7 +128,7 @@ block content
if item.pledgedBy === '_CCUNKNOWN'
span.ugc=lang('WISHLIST_PLEDGED_GUEST')
else
span.ugc=lang('WISHLIST_PLEDGED', item.pledgedBy)
span.ugc=lang('WISHLIST_PLEDGED', item.pledgedBy.endsWith('_') ? item.pledgedBy.replace(/_$/, ' (Guest)') : item.pledgedBy)
td(data-label='Delete Item')
form.inline(
method='POST',

View file

@ -48,7 +48,7 @@ block content
div!= _CC.config.customHtml.wishlists
ul.noStyle.noLeftMargin
if req.user._id !== '_CCUNKNOWN'
if req.user._id !== '_CCUNKNOWN' && !req.user._id.endsWith('_')
li
.box
a(href=`${_CC.config.base}wishlist/${req.user._id}`, style='color: #4a4a4a;')