cute rotating carousel
[edumed.git] / catalogue / templates / catalogue / lesson_detail.html
index 537fe03..2197ea8 100755 (executable)
@@ -1,7 +1,40 @@
 {% extends "base.html" %}
+{% load url from future %}
 
 {% block title %}{{ object }}{% endblock %}
 
 {% block body %}
-    <h1>{{ object }}</h1>
+    <!--h1>{{ object }}</h1-->
+
+<aside id="sidebar">
+    <section class="box">
+        <h1 class="realisation">Realizacja i czas lekcji</h1>
+        {% if object.depth == 0 %}
+        <p>To lekcja jest syntezą działu
+        {{ object.section }}.
+        Dostępny jest również
+        <a href="{% url 'catalogue_lessons' %}#{{ object.section.slug }}">szczegółowy kurs</a>
+        dla tego działu.
+        </p>
+        {% else %}
+        <p>Ta lekcja jest częścią działu
+        {{ object.section }}.
+        Dostępna jest również
+        <a href="">lekcja syntetyczna</a>
+        dla tego działu.
+        </p>
+        {% endif %}
+        <p>Czas trwania: 45 minut.</p>
+    </section>
+    <section class="box"><a href="" class="dl-button">Pobierz całą lekcję</a></section>
+    <section><a href="" class="dl-button">Pobierz lekcję w wersji dla ucznia</a></section>
+    <section class="section">
+        <h1>Korzystanie z informacji</h1>
+    </section>
+</aside>
+
+<div id="main-bar">
+{{ object.html_file.read|safe }}
+</div>
+
 {% endblock %}