Only show own accounts on home page

This commit is contained in:
Cadence Ember 2025-04-09 13:21:41 +12:00
parent 2c05140382
commit 924c7395cf
7 changed files with 106 additions and 79 deletions

View file

@ -16,15 +16,15 @@ html
.ml6 BC Explorer
.mx-auto.wmx9.py24.px16.g24
.s-prose
h1 Select profile
- const names = select("account", "account").pluck().all()
ul
each name in names
li: a(href=`/${name}/`)= name
if accounts.length
.s-prose
h1 Select account
ul
each account in accounts
li: a(href=`/${account.account}/`) #{account.account} (#{account.count} items)
form.mt32(hx-post="/api/load-collection" hx-target="#results" hx-indicator="#submit-username")
h2 Add your profile
h1 Add an account
.d-flex.gy4.fd-column.ps-relative
label.s-label(for="username") Bandcamp username
input.s-input.wmx3#username(name="account" placeholder="Enter your Bandcamp username here")