Compare commits

..

2 commits

Author SHA1 Message Date
hackish
ccfae13cf7 Merge branch 'castro' into castro_dec2023 2023-12-06 11:04:03 -08:00
hackish
e0fde2c6e4 Attempt to add hidden guest accounts with underscores appended 2023-12-06 11:03:42 -08:00
4 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ block title
h1(style="margin-bottom: 0;") h1(style="margin-bottom: 0;")
a(href='..') < a(href='..') <
| #{config.siteTitle} | #{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 block content
.columns .columns

View file

@ -3,7 +3,7 @@ extends layout.pug
block content block content
h2= lang('ADMIN_SETTINGS_USERS_HEADER') h2= lang('ADMIN_SETTINGS_USERS_HEADER')
each user in users 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}`) a(href=`${_CC.config.base}admin-settings/edit/${user.id}`)
span.is-size-7.icon.has-text-info span.is-size-7.icon.has-text-info
i.fas.fa-edit i.fas.fa-edit

View file

@ -128,7 +128,7 @@ block content
if item.pledgedBy === '_CCUNKNOWN' if item.pledgedBy === '_CCUNKNOWN'
span.ugc=lang('WISHLIST_PLEDGED_GUEST') span.ugc=lang('WISHLIST_PLEDGED_GUEST')
else 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') td(data-label='Delete Item')
form.inline( form.inline(
method='POST', method='POST',

View file

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