{% extends 'base.html' %} {% load staticfiles %} {% load comments %} {% block content %}

{{protocol_items.title}}

Author:    {{protocol_items.author}}
Rating:    {{protocol_items.rating}}
Publication:    {{protocol_items.date_of_upload}}
Updated:    {{protocol_items.date_modified}}
{% if protocol_items.description %}

Description:

{{protocol_items.description}}
{% endif %}

Protocol Type: {{protocol_items.protocol_type}}

Reagents:

{{protocol_items.reagents|linebreaksbr}}


Protocol Steps:

{{steps|linebreaksbr}}

{% if not user.is_authenticated %}

Sign up or login to rate and comment this protocol!

{% endif %} {% if user.is_authenticated %} {% if current_user not in protocol_items.user_rated %} {# This is a quick fix, change it later. Find a list field in Django #}

Rate this protocol (1 - 5):

{% csrf_token %}
{% endif %} {% endif %}

Comments


{% get_comment_form for protocol_items as form %} {% render_comment_list for protocol_items %} {% if user.is_authenticated %} {% get_comment_form for protocol_items as form %}
{% csrf_token %} {{ form.object_pk }} {{ form.content_type }} {{ form.timestamp }} {{ form.security_hash }}


{% endif %}
{% if protocol_items.author == current_user %}
{% csrf_token %}
{% csrf_token %}
{% endif %}
{% endblock %}