2017 -> Nowa
[edumed.git] / catalogue / templates / catalogue / lesson / lesson_detail.html
1 {% extends "base.html" %}
2 {% load lesson_link lesson_nav person_list from catalogue_tags %}
3 {% load competence curriculum url_for_level from curriculum_tags %}
4
5
6 {% block title %}{{ object }}{% endblock %}
7
8 {% block body %}
9     <!--h1>{{ object }}</h1-->
10
11 <aside id="sidebar">
12     {% block sidebar-top %}{% endblock %}
13
14     <section class="section">
15         {% lesson_nav object %}
16     </section>
17
18     {% if object.dc.relations %}
19     <section class="section-minor">
20         <h1>Powiązane lekcje</h1>
21         <ul class="link-list link-list-colored">
22         {% for uri in object.dc.relations %}
23             <li>{% lesson_link uri %}</li>
24         {% endfor %}
25         </ul>
26     </section>
27     {% endif %}
28
29     {% if object.dc.competences %}
30     <section class="section-minor">
31         <h1>Kompetencje:</h1>
32         <ul class="plain">
33         {% competence object.dc.competences object.level %}
34         </ul>
35     </section>
36     {% endif %}
37
38     {% if object.dc.curriculum %}
39     <section class="section-minor">
40         <h1>Podstawa programowa:</h1>
41         <ul class="plain">
42         {% curriculum object.dc.curriculum %}
43         </ul>
44     </section>
45     {% endif %}
46
47     {% if object.dc.curriculum_new %}
48     <section class="section-minor">
49         <h1>Nowa podstawa programowa:</h1>
50         <ul class="plain">
51         {% curriculum object.dc.curriculum_new new=True %}
52         </ul>
53     </section>
54     {% endif %}
55
56     <section class="section-micro">
57         <h1>Informacje:</h1>
58         <p>
59         {% if object.dc.authors_textbook %}
60         Tekst: {{ object.dc.authors_textbook|person_list }}<br/>
61         {% endif %}
62         {% if object.dc.authors_scenario %}
63         Scenariusz: {{ object.dc.authors_scenario|person_list }}<br/>
64         {% endif %}
65         {% if object.dc.authors_expert %}
66         Konsultacja merytoryczna: {{ object.dc.authors_expert|person_list }}<br/>
67         {% endif %}
68         {% if object.dc.authors_methodologist %}
69         Konsultacja metodyczna: {{ object.dc.authors_methodologist|person_list }}<br/>
70         {% endif %}
71         Licencja: <a href="{{ object.dc.license }}">{{ object.dc.license_description }}</a>.</p>
72     </section>
73
74     <section class="section-micro">
75         <h1>Narzędzia:</h1>
76         <ul class="link-list">
77             <li><a href="{{ object.xml_file.url }}">źródłowy plik XML</a></li>
78             <!--li><a href="{{ object.dc.about }}">lekcja na Platformie Redakcyjnej</a></li-->
79         </ul>
80     </section>
81
82     <section class="section-micro">
83         <p>{{ object.dc.description }}</p>
84     </section>
85
86 </aside>
87
88 <div id="main-bar">
89
90 {% block lesson-info %}
91 {% endblock %}
92
93 {{ object.html_file.read|safe }}
94
95
96 <a class="top-link" href="#">wróć na górę</a>
97 <footer class="lesson-footer">
98
99 {% if object.section %}
100
101 <p class="section-info"><a href="{{ object.section.get_absolute_url }}">Temat: {{ object.section }}</a>
102 <br/>(<a href="{% url 'catalogue_lessons' %}">spis wszystkich lekcji</a>)</p>
103
104 <p>
105 {% with object.get_previous as previous %}
106     {% if previous %}
107         <a class="previous-lesson" href="{{ previous.get_absolute_url }}">&larr; {{ previous }}</a>
108     {% endif %}
109 {% endwith %}
110
111 {% with object.get_next as next %}
112     {% if next %}
113         <a class="next-lesson" href="{{ next.get_absolute_url }}">{{ next }} &rarr;</a>
114     {% endif %}
115 {% endwith %}
116 </p>
117 {% endif %}
118
119 <div class="clr"></div>
120
121 <p class="section-info">
122     {% block suggest-link %}
123     <a href="{% url 'contact_form' 'sugestie' %}?temat={{ 'Lekcja: '|add:object.title|urlencode }}">
124         Zgłoś swoją uwagę na temat tej lekcji.
125     </a>
126     {% endblock %}
127 </p>
128
129 </footer>
130
131
132 {% if request.user.is_authenticated and object.forum_topics.all.count %}
133     <h2>Na forum</h2>
134     <ul>
135     {% for forum_topic in object.forum_topics.all %}
136         <li><a href="{{forum_topic.pybb_topic.get_absolute_url}}">{{forum_topic.pybb_topic.name}}</a></li>
137     {% endfor %}
138     </ul>
139 {% endif %}
140
141 </div>
142
143 {% endblock %}