@(c: lila.coach.Coach.WithUser, coachReviews: lila.coach.CoachReview.Reviews, studies: Seq[lila.study.Study.WithChaptersAndLiked], myReview: Option[lila.coach.CoachReview])(implicit ctx: Context) @moreCss = { @cssTag("coach.css") @if(studies.nonEmpty) { @cssTag("studyList.css") } } @moreJs = { @jsAt("vendor/bar-rating/dist/jquery.barrating.min.js") @if(ctx.isAuth) { @embedJs { $(function() { $(".bar-rating").barrating(); $('.review-form .toggle').click(function() { $(this).remove(); $('.review-form form').show(); }); }); } } } @side = {
@h
}Location |
@profile.nonEmptyLocation.map { l =>
@l,
}
@profile.countryInfo.map { c =>
|
---|---|
Languages | @l |
Rating | @profile.officialRating.map { r => @r.name.toUpperCase: @r.rating, } @c.user.best8Perfs.take(6).filter(c.user.hasEstablishedRating).map { pt => @showPerfRating(c.user, pt) } |
Hourly rate | @r |
Availability | @if(c.coach.available.value) { Now accepting students } else { Not accepting students at the moment } |
Admin | @if(c.coach.isListed) { This page is now public. } else { This page is not public yet. } @if(ctx.me.??(c.coach.is)) { Edit my coach profile } |
Contact | Send a private message |