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

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

{{ comments.render( view = 'discussion', docs = drdocs, udict = udict, comment_ref = 'drid', reply_ref = 'drrid', comment_post_perm = perm.PERM_REPLY_DISCUSSION, comment_edit_perm = perm.PERM_NONE if handler.own(ddoc, perm.PERM_EDIT_DISCUSSION_REPLY_SELF_DISCUSSION) else perm.PERM_EDIT_DISCUSSION_REPLY, comment_edit_self_perm = perm.PERM_EDIT_DISCUSSION_REPLY_SELF, comment_delete_perm = perm.PERM_NONE if handler.own(ddoc, perm.PERM_DELETE_DISCUSSION_REPLY_SELF_DISCUSSION) else perm.PERM_DELETE_DISCUSSION_REPLY, comment_delete_self_perm = perm.PERM_DELETE_DISCUSSION_REPLY_SELF, reply_post_perm = perm.PERM_REPLY_DISCUSSION, reply_edit_perm = perm.PERM_NONE if handler.own(ddoc, perm.PERM_EDIT_DISCUSSION_REPLY_SELF_DISCUSSION) else perm.PERM_EDIT_DISCUSSION_REPLY, reply_edit_self_perm = perm.PERM_EDIT_DISCUSSION_REPLY_SELF, reply_delete_perm = perm.PERM_NONE if handler.own(ddoc, perm.PERM_DELETE_DISCUSSION_REPLY_SELF_DISCUSSION) else perm.PERM_DELETE_DISCUSSION_REPLY, 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']] %}
{% set pdoc=vnode %} {% set owner_udoc=udict[vnode['owner']] %} {% include "partials/problem_sidebar.html" %}
{% endblock %}