{% extends "layout/basic.html" %} {% import "components/comments_solution.html" as comments with context %} {% block content %}

{{ _('{0} solutions').format(pscount) }}

{{ comments.render( view = 'solution', docs = psdocs, udict = udict, comment_ref = 'psid', reply_ref = 'psrid', comment_placeholder = 'Write Your Solution', comment_post_op = 'submit', comment_edit_op = 'edit_solution', comment_post_text = 'Share', reply_post_op = 'reply', reply_edit_op = 'edit_reply', comment_delete_op = 'delete_solution', reply_delete_op = 'delete_reply', comment_post_perm = perm.PERM_CREATE_PROBLEM_SOLUTION, comment_edit_perm = perm.PERM_NEVER, comment_edit_self_perm = perm.PERM_EDIT_PROBLEM_SOLUTION_SELF, comment_delete_perm = perm.PERM_DELETE_PROBLEM_SOLUTION, comment_delete_self_perm = perm.PERM_DELETE_PROBLEM_SOLUTION_SELF, reply_post_perm = perm.PERM_REPLY_PROBLEM_SOLUTION, reply_edit_perm = perm.PERM_NEVER, reply_edit_self_perm = perm.PERM_EDIT_PROBLEM_SOLUTION_REPLY_SELF, reply_delete_perm = perm.PERM_DELETE_PROBLEM_SOLUTION_REPLY, reply_delete_self_perm = perm.PERM_DELETE_PROBLEM_SOLUTION_REPLY_SELF ) }} {% if not sid %} {{ paginator.render(page, pcount) }} {% endif %} {% if drcount == 0 %} {{ nothing.render('No solutions so far...') }} {% endif %}
{% if sid %} {% endif %}
{% set owner_udoc = udict[pdoc.owner] %} {% include "partials/problem_sidebar.html" %}
{% endblock %}