package templates import ( "github.com/maid-zone/soundcloak/lib/sc" "net/url" "strconv" "strings" ) templ UserEmbed(u sc.User) { } templ User(u sc.User, p *sc.Paginated[sc.Track]) {
if u.Avatar != "" { }

{ u.Username }

if u.FullName != "" {

{ u.FullName }

} if u.Verified {

Verified

}

{ u.Description }

{ strconv.FormatInt(u.Followers, 10) } followers

{ strconv.FormatInt(u.Following, 10) } following

{ strconv.FormatInt(u.Tracks, 10) } tracks

{ strconv.FormatInt(u.Playlists, 10) } playlists


Created: { u.CreatedAt }

Last modified: { u.LastModified }

if len(p.Collection) != 0 {
for _, track := range p.Collection {

{ track.Title }

}
more tracks } else { no more tracks } }