@(name: String, teams: Paginator[lila.team.Team], next: Option[Call], tab: String, search: String = "")(implicit ctx: Context) @title = @{ "%s - page %d".format(name, teams.currentPage) } @team.layout( title = title, currentTab = tab.some) {

@name

@if(teams.nbResults > 0) { @next.map { n => } @teams.currentPageResults.map(x => team.teamTr(x)) } else { @team.noTeam() }
}