{% extends "site_base.html" %} {% load comments %} {% block extranav %}
  • {{ corkboard.project }}
  • {{ corkboard }}
  • {% endblock %} {% block content %}

    Corkboard for {{ corkboard.title }}

    {{ corkboard.description }}

    {% for p in images %}
    {% get_comment_count for p as comment_count %} {{ p.title }}
    {{ comment_count }} {% if user.is_authenticated and user.is_staff %}
    {% csrf_token %}
    {% endif %}
    {% endfor %}

    Comments on corkboard {{ corkboard.title }}

    {% get_comment_list for corkboard as comment_list %} {% for comment in comment_list %}
    {{ comment.user_name }} {{ comment.submit_date|date:"d-M" }}
    {{ comment.comment }}
    {% endfor %}

    To comment on an image select the image above and use the comments form related to it.

    {% render_comment_form for corkboard %}

    Upload an image to this corkboard

    {% csrf_token %} {% if form.non_field_errors %}
    {{ form.non_field_errors }}
    {% endif %} {% for field in form %} {% if field.is_hidden %} {{ field }} {% else %}
    {{ field }} {% if field.help_text or field.errors %} {{ field.errors }} {{ field.help_text }} {% endif %}
    {% endif %} {% endfor %}

    {% endblock %}