X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/32ac950fc8d6ba7ef7ec4bf1c4b05f2ed25b02fd..05ce0b5f9bd62d1b369a6718bec1b70e0a4a0fef:/forum/templates/pybb/topic.html
diff --git a/forum/templates/pybb/topic.html b/forum/templates/pybb/topic.html
new file mode 100644
index 0000000..f11f2cb
--- /dev/null
+++ b/forum/templates/pybb/topic.html
@@ -0,0 +1,102 @@
+{% extends 'pybb/base.html' %}
+
+{% load url from future %}
+
+{% load pybb_tags i18n %}
+
+{% block title %}{{ topic }}{% endblock %}
+
+{% block extra_script %}
+ {{ block.super }}
+ {% include "pybb/_markitup.html" %}
+
+{% endblock %}
+
+{% block breadcrumb %}
+ {% with object=topic %}
+ {% include "pybb/breadcrumb.html" %}
+ {% endwith %}
+{% endblock %}
+
+{% block content %}
+
+
{{ topic.name }}
+
+ {% include 'forum/related_lesson_info.html' with lesson=topic.edumed_topic.lesson %}
+
+ {% with _('Posts') as label %}
+ {% include "pybb/pagination.html" %}
+ {% endwith %}
+
+ {% if topic.poll_type %}
+ {% include 'pybb/poll.html' %}
+ {% endif %}
+
+
+ {% if first_post %}{% ifnotequal first_post post_list.0 %}
+ {% with first_post as post %}
+
{% include "pybb/post_template.html" %}
+ {% endwith %}
+ {% endifnotequal %}{% endif %}
+ {% for post in post_list %}
+ {% cycle 'odd' 'even' as rowcolors silent %}
+ {% include "pybb/post_template.html" %}
+ {% endfor %}
+
+
+ {% with _('Posts') as label %}
+ {% include "pybb/pagination.html" %}
+ {% endwith %}
+
+ {% if user.is_authenticated %}
+
+ {% endif %}
+
+ {% if user.is_authenticated or PYBB_ENABLE_ANONYMOUS_POST %}
+ {% pybb_get_profile user=user as user_profile %}
+
+ {% if not user_profile.is_banned %}
+ {% if not topic.closed %}
+ {% include "pybb/post_form.html" %}
+ {% endif %}
+ {% endif %}
+ {% else %}
+ {% include 'pybb/_need_to_login_message.html' %}
+ {% endif %}
+
+ {% if user.is_staff %}
+
+ {% endif %}
+
+{% endblock %}