{% extends "base.html" %} {% load i18n plmapp_tags %} {% load comments %} {% block content %}
{% for description,attribute in object_attributes %} {% endfor %}
{{description|capfirst}} {% if attribute.year %} {{ attribute|date:"DATETIME_FORMAT" }} — {% blocktrans with attribute|timesince as time_since %}{{time_since}} ago{% endblocktrans %} {% else %} {{attribute|linebreaks}} {% endif %}
{% if is_owner %} {% ifequal object_type 'User' %} {% trans "Edit this information" %} {% trans "Change my password" %} {% else %} {% if obj.is_editable %} {% trans "Edit this information" %} {% endif %} {% endifequal %} {% endif %} {% if can_generate_pdf and not restricted %} {% trans "Download as PDF"%} {% endif %} {% if obj.can_clone %} {% trans "Clone" %} {% endif %}
{% if not restricted %}

{% trans "Comments" %}

{% get_comment_count for obj.object as comment_count %} {% if comment_count %}

{% if comment_count == 1 %} {% blocktrans %} One comment has been posted. {% endblocktrans %} {% else %} {% blocktrans %} {{ comment_count }} comments have been posted. {% endblocktrans %} {% endif %}

{% get_comment_list for obj.object as comment_list %} {% for comment in comment_list %}
{% trans "Posted by:" %} {{ comment.user_name }} {% trans "Date:" %} {{ comment.submit_date|date:"r" }}
{{ comment.comment|linebreaks }}
{% endfor %} {% else %}

{% trans "No comments have been posted yet." %}

{% endif %}

{% trans "Post a comment" %}

{% get_comment_form for obj.object as form %}
{% csrf_token %} {% for field in form %} {% if field.is_hidden %} {{ field }} {% else %} {% if field.errors %} {{ field.errors }} {% endif %} {% endif %} {% endfor %}
{% endif %} {% endblock %}