{% load comments %} {% block title %}Title: {{ protocol.title }} {% endblock %}

{% block pub %}Publisher: {{ protocol.publisher }} {% endblock %}

{% block desc %}Description: {{ protocol.description }} {% endblock %}

{% block date %}Date Published: {{ protocol.pub_date }} {% endblock %}

{% block content %}Protocol Text: {{ protocol.text }} {% endblock %}
{% if user.is_authenticated %} {% ifequal user.username protocol.publisher|stringformat:"s" %}
{% csrf_token %}
{% get_comment_list for protocol as comment_list %} {% endifequal %} {% endif %}

Post a comment

{% if user.is_authenticated %} {% get_comment_form for protocol as form %}
{% csrf_token %} {{ form.comment }} {{ form.content_type }} {{ form.object_pk }} {{ form.timestamp }} {{ form.security_hash }}
{% else %} {% with protocol.get_absolute_url as next %} {% render_comment_form for protocol %} {% endwith %} {% endif %} {% render_comment_list for protocol %}