-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add side card for the self-paced courses
Helps with: #255
- Loading branch information
Showing
3 changed files
with
113 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,45 +28,16 @@ | |
<hr> | ||
</header> | ||
|
||
{% if course.start_date %} | ||
<div class="course-dates card w-lg-25 float-lg-right text-center"> | ||
<div class="card-header"> | ||
{% if course.vars['coach-present'] %} | ||
Kurz s instruktorem | ||
{% else %} | ||
Termín kurzu | ||
{% endif %} | ||
</div> | ||
<div class="card-body"> | ||
<div class="calendar-dates"> | ||
{{ (course.start_date, course.end_date) | format_date_range }} | ||
</div> | ||
</div> | ||
<div class="card-footer small text-left"> | ||
<ul class="list-unstyled" style="margin-bottom:0;"> | ||
<li> | ||
<a href="{{ url_for('course_calendar', course=course) }}">→ Kalendář</a> | ||
</li> | ||
{% if course.base_course %} | ||
<li> | ||
<a href="{{ course_url(course.base_course) }}">→ Ekvivalentní kurz pro samouky</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
<h1>{{ course.title }}</h1> | ||
<div class="row"> | ||
<div class="col-md-8"> | ||
<h1>{{ course.title }}</h1> | ||
|
||
{% if course.subtitle is defined and course.subtitle != None %} | ||
<h2>{{ course.subtitle }}</h2> | ||
{% endif%} | ||
{% if course.subtitle is defined and course.subtitle != None %} | ||
<h2>{{ course.subtitle }}</h2> | ||
{% endif%} | ||
|
||
{{ course.long_description | markdown }} | ||
{{ course.long_description | markdown }} | ||
|
||
<div class="row"> | ||
<div class="sections col-xs-12 col-sm-12 col-md-8 col-lg-8"> | ||
{% for session in plan.values() %} | ||
<div class="section{{ loop.index }}"> | ||
<h4> | ||
|
@@ -85,8 +56,88 @@ <h4> | |
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
|
||
</div> | ||
<div class="col-md-4"> | ||
{% if course.start_date %} | ||
<div class="card course-card text-center"> | ||
<div class="card-header"> | ||
Toto jsou podklady pro kurz s instruktorem | ||
</div> | ||
<div class="card-body"> | ||
<div class="calendar-dates"> | ||
{{ (course.start_date, course.end_date) | format_date_range }} | ||
</div> | ||
</div> | ||
<div class="card-footer small text-left"> | ||
<ul class="list-unstyled" style="margin-bottom:0;"> | ||
<li> | ||
<a href="{{ url_for('course_calendar', course=course) }}">→ Kalendář</a> | ||
</li> | ||
{% if course.base_course %} | ||
<li> | ||
<a href="{{ course_url(course.base_course) }}">→ Ekvivalentní kurz pro samouky</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% else %} | ||
<div class="card course-card"> | ||
<div class="card-header text-center"> | ||
Toto jsou materiály pro samouky | ||
</div> | ||
<div class="card-body"> | ||
<p> | ||
Doufáme, že naše materiály jsou srozumitelné a přínosné. | ||
Pokud ne, ozvěte se prosím: | ||
</p> | ||
<ul> | ||
<li> | ||
na <a href="https://www.facebook.com/groups/pyonieri/">Facebooku</a>, | ||
</li> | ||
<li> | ||
založením <a href="https://github.com/pyvec/naucse.python.cz/issues/new"><i>issue</i> na Githubu</a>, | ||
</li> | ||
<li> | ||
osobně na <a href="https://pyvo.cz/">srazu</a>, nebo | ||
</li> | ||
<li> | ||
<a href="mailto:[email protected]">mailem</a> do | ||
<a href="https://groups.google.com/forum/#!forum/django-cs">diskusní skupiny</a>. | ||
</li> | ||
</ul> | ||
<p> | ||
Případné nejasnosti rádi vysvětlíme, | ||
ale musíme o nich vědět! | ||
</p> | ||
</div> | ||
{% if recent_runs %} | ||
<div class="card-footer recent-runs"> | ||
Na těchto materiálech jshou založeny | ||
i kurzy s instruktorem: | ||
<ul class="list-unstyled"> | ||
{% for run in recent_runs %} | ||
<li> | ||
<a href="{{ url_for('course', course=run) }}"> | ||
{{ run.title }} | ||
{% if run.subtitle %} | ||
– {{ run.subtitle }} | ||
{% endif %} | ||
</a> | ||
<div> | ||
{{ (run.start_date, run.end_date) | format_date_range }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
|
||
</section> | ||
</div> | ||
|
||
|