{% extends "layout/basic.html" %} {% import "components/comments_discussion.html" as comments with context %} {% block content %}
{{ ddoc['content']|markdown|safe }}

{{ _('{0} comments').format(drcount) }}

{{ comments.render( view = 'discussion', docs = drdocs, udict = udict, comment_ref = 'drid', reply_ref = 'drrid', comment_post_op = 'reply', reply_post_op = 'tail_reply', comment_edit_op = 'edit_reply', comment_delete_op = 'delete_reply', reply_edit_op = 'edit_tail_reply', reply_delete_op = 'delete_tail_reply', comment_post_perm = perm.PERM_REPLY_DISCUSSION, comment_edit_perm = perm.PERM_NEVER, comment_delete_perm = perm.PERM_DELETE_DISCUSSION_REPLY_SELF_DISCUSSION if handler.user.own(ddoc) else perm.PERM_DELETE_DISCUSSION_REPLY, comment_edit_self_perm = perm.PERM_EDIT_DISCUSSION_REPLY_SELF, comment_delete_self_perm = perm.PERM_DELETE_DISCUSSION_REPLY_SELF, reply_post_perm = perm.PERM_REPLY_DISCUSSION, reply_edit_perm = perm.PERM_NEVER, reply_delete_perm = perm.PERM_DELETE_DISCUSSION_REPLY_SELF_DISCUSSION if handler.user.own(ddoc) else perm.PERM_DELETE_DISCUSSION_REPLY, reply_edit_self_perm = perm.PERM_EDIT_DISCUSSION_REPLY_SELF, reply_delete_self_perm = perm.PERM_DELETE_DISCUSSION_REPLY_SELF ) }} {{ paginator.render(page, pcount) }} {% if drcount == 0 %} {{ nothing.render('No comments so far...') }} {% endif %}
{% set udoc = udict[ddoc.owner] %}
{% if vnode.type == model.document.TYPE_PROBLEM %} {% set pdoc = vnode %} {% set owner_udoc = udict[vnode.owner] %} {% include "partials/problem_sidebar.html" %} {% endif %}
{% endblock %}