#{extends 'main.html' /}

&{'topthree'}

#{list items:topUsers, as:'topUser'} #{if topUser.picture == null} #{/if} #{else} #{/else} #{/list}
&{'tipper'} &{'username'} &{'points'}
${topUser.username} ${topUser.points}
&{'user.placandpoints.' + (connectedUser.points == 1 ? 'one' : 'many'), connectedUser.points, connectedUser.place, users}
${pointsDiff}

&{playday.name}

#{list items:playday?.games, as:'game'} #{/list} #{else} #{/else}
&{'date'} &{'hometeam'} &{'awayteam'} &{'result'} &{'yourbet'}
${game.kickoff.formatted()}   &{game.homeTeam?.name}   &{game.awayTeam?.name} ${game.getScore()} ${game.getGameTipAndPoints()}
&{'nogamesyet'}