package playersview import "git.haelnorr.com/h/oslstats/internal/db" import "git.haelnorr.com/h/oslstats/internal/view/baseview" import "fmt" templ PlayerPage(player *db.Player, isOwner bool) { @baseview.Layout(player.DisplayName() + " - Player Profile") {

{ player.DisplayName() }

if player.SlapID != nil { Slapshot ID: { fmt.Sprintf("%d", *player.SlapID) } } if isOwner { Your Profile }
@SlapIDSection(player, isOwner)
} }