display coach studies before YT videos

This commit is contained in:
Thibault Duplessis 2016-09-08 01:06:05 +02:00
parent 7ef8a7dedc
commit 8e12e7ac88
2 changed files with 14 additions and 14 deletions

View file

@ -94,11 +94,11 @@ side = side.some) {
@textarea(form("profile.methodology"), Html("Teaching methodology"), help = Html("How you prepare and run lessons. How you follow up with students.").some)
</div>
<div class="panel contents">
@textarea(form("profile.youtubeVideos"), Html("Featured youtube videos"), help = Html("Up to 6 Youtube video URLs, one per line").some)
@textarea(form("profile.publicStudies"), Html("Featured public lichess studies"), help = Html("Up to 6 lichess study URLs, one per line").some)
@base.form.group(form("profile.youtubeChannel"), Html("URL of your Youtube channel")) {
@base.form.input(form("profile.youtubeChannel"))
}
@textarea(form("profile.publicStudies"), Html("Featured public lichess studies"), help = Html("Up to 6 lichess study URLs, one per line").some)
@textarea(form("profile.youtubeVideos"), Html("Featured youtube videos"), help = Html("Up to 6 Youtube video URLs, one per line").some)
</div>
<div class="panel reviews">
<p class="help text" data-icon="">Reviews are visible only after you approve them.</p>

View file

@ -135,6 +135,18 @@ moreCss = moreCss) {
@section("Best skills", profile.skills)
@section("Teaching methodology", profile.methodology)
</div>
@if(studies.nonEmpty) {
<section class="studies">
<h1>Public studies</h1>
<div class="list">
@studies.map { s =>
<div class="study">
@study.widget(s)
</div>
}
</div>
</section>
}
@if(profile.youtubeUrls.nonEmpty) {
<section class="youtube">
<h1>
@ -150,18 +162,6 @@ moreCss = moreCss) {
</div>
</section>
}
@if(studies.nonEmpty) {
<section class="studies">
<h1>Public studies</h1>
<div class="list">
@studies.map { s =>
<div class="study">
@study.widget(s)
</div>
}
</div>
</section>
}
}
</div>
}