@(u: User, rankMap: lila.rating.UserRankMap, perfType: lila.rating.PerfType, data: play.api.libs.json.JsObject)(implicit ctx: Context) @moreJs = { @jsAt(s"compiled/lichess.perfStat${isProd??(".min")}.js") @embedJs { $(function() { LichessPerfStat(document.getElementById('perfStatContent'), { data: @toJson(data) }); }); } } @moreCss = { @cssTag("user-perf-stat.css") } @user.layout( title = s"${u.username} ${perfType.name} stats", side = show.side(u, rankMap, perfType.some).some, robots = false, evenMoreJs = moreJs, evenMoreCss = moreCss) {