@(data: lila.practice.UserPractice)(implicit ctx: Context) @side = { } @ribbon(prog: lila.practice.Completion) = { @prog.done / @prog.total } @base.layout( title = "Practice chess positions", side = side.some, moreCss = cssTag("practice.css"), openGraph = lila.app.ui.OpenGraph( title = "Practice your chess", description = "Learn how to master the most common chess positions", url = s"$netBaseUrl${routes.Practice.index}" ).some) {
@data.structure.sections.map { section =>

@section.name

@section.studies.map { stud => @defining(data.progressOn(stud.id)) { prog => @if(ctx.isAuth) { @ribbon(prog) }

@stud.name

@stud.desc
} }
}
}