Only show own accounts on home page
This commit is contained in:
parent
2c05140382
commit
924c7395cf
7 changed files with 106 additions and 79 deletions
14
pug/home.pug
14
pug/home.pug
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue