package playersview
import "git.haelnorr.com/h/oslstats/internal/db"
import "fmt"
templ SlapIDSection(player *db.Player, isOwner bool) {
if player.SlapID == nil && isOwner {
@slapIDLinkPrompt(player)
} else if player.SlapID != nil {
@slapIDLinked(player)
}
}
templ slapIDLinkPrompt(player *db.Player) {
Slapshot ID Not Linked
Your Slapshot ID is not linked. Please link your Steam account to your Discord account, then click the button below to connect your Slapshot ID.
Need help linking Steam to Discord?
Follow this guide
}
templ slapIDLinked(player *db.Player) {
Slapshot ID linked:
if player.SlapID != nil {
{ fmt.Sprintf("%d", *player.SlapID) }
}
}