X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d0f0e1412cc42d366b234e798dfb68feed05d751..d555d988764995ea1f9f5ece46f453a66f09b334:/src/forum/templates/pybb/topic.html?ds=sidebyside
diff --git a/src/forum/templates/pybb/topic.html b/src/forum/templates/pybb/topic.html
new file mode 100644
index 0000000..f11f2cb
--- /dev/null
+++ b/src/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 %}