mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 14:27:27 +00:00
members: show joined date in admin + public lists; 'last active: X ago'
Admin Users view appends 'joined YYYY-MM-DD'. Public member directory shows 'last active: N days ago' for offline members plus the joined date, both sourced from store.User.CreatedAt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
28ad36834e
commit
042166b05f
2 changed files with 35 additions and 3 deletions
|
|
@ -344,6 +344,9 @@ func (m Model) viewUsers() (string, string) {
|
|||
if u.EmailVerified {
|
||||
flags = append(flags, "verified")
|
||||
}
|
||||
if !u.CreatedAt.IsZero() {
|
||||
flags = append(flags, "joined "+u.CreatedAt.Format("2006-01-02"))
|
||||
}
|
||||
name := u.Name
|
||||
if u.Banned {
|
||||
name = warnStyle.Render(name + " [BANNED]")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue