Fixes #3293: methodological consultants.
[edumed.git] / catalogue / templates / catalogue / lesson / lesson_detail.html
index adc5dc3..3da0600 100755 (executable)
@@ -56,6 +56,9 @@
         {% if object.dc.authors_expert %}
         Konsultacja merytoryczna: {{ object.dc.authors_expert|person_list }}<br/>
         {% endif %}
+        {% if object.dc.authors_methodologist %}
+        Konsultacja metodyczna: {{ object.dc.authors_methodologist|person_list }}<br/>
+        {% endif %}
         Licencja: <a href="{{ object.dc.license }}">{{ object.dc.license_description }}</a>.</p>
     </section>
 
 </aside>
 
 <div id="main-bar">
+
+{% block lesson-info %}
+{% endblock %}
+
 {{ object.html_file.read|safe }}
 
 
 </footer>
 
 
-{% if object.forum_topics.all.count %}
-<h2>Na forum</h2>
-<ul>
-{% for forum_topic in object.forum_topics.all %}
-    <li><a href="{{forum_topic.pybb_topic.get_absolute_url}}">{{forum_topic.pybb_topic.name}}</a></li>
-{% endfor %}
-</ul>
+{% if request.user.is_authenticated and object.forum_topics.all.count %}
+    <h2>Na forum</h2>
+    <ul>
+    {% for forum_topic in object.forum_topics.all %}
+        <li><a href="{{forum_topic.pybb_topic.get_absolute_url}}">{{forum_topic.pybb_topic.name}}</a></li>
+    {% endfor %}
+    </ul>
 {% endif %}
 
 </div>