@(u: User, info: lila.app.mashup.UserInfo, games: Paginator[Game], filters: lila.app.mashup.GameFilterMenu, searchForm: Option[Form[_]], social: lila.app.mashup.UserInfo.Social)(implicit ctx: Context) @import lila.app.mashup.UserInfo.Angle @evenMoreJs = { @if(filters.current.name == "search") { @jsTag("search.js") } @if(!u.lame || ctx.is(u) || isGranted(_.UserSpy)) { @info.ratingChart.map { ratingChart => @jsTag("chart/ratingHistory.js") @embedJsUnsafe(s"lichess.ratingHistoryChart($ratingChart);") } } } @user.layout( title = s"${u.username} : ${userGameFilterTitleNoTag(u, info.nbs, filters.current)}${if(games.currentPage == 1) "" else " - page " + games.currentPage}", side = side(u, info.ranks, none).some, robots = false, evenMoreJs = evenMoreJs, openGraph = lila.app.ui.OpenGraph( image = staticUrl("images/large_tile.png").some, title = u.titleUsernameWithBestRating, url = s"$netBaseUrl${routes.User.show(u.username).url}", description = describeUser(u)).some) {
@header(u, info, Angle.Games(searchForm), social)
@gamesContent(u, info.nbs, games, filters, filters.current.name)
}