{% extends "base.html" %} {% load i18n plmapp_tags more_like_this humanize %} {% load comments %} {% block content %}
{% for description, attribute, richtext in object_attributes %} {% endfor %}
{{description|capfirst}} {% if attribute.year %} {{ attribute|date:"DATETIME_FORMAT" }} — {% blocktrans with attribute|timesince as time_since %}{{time_since}} ago{% endblocktrans %} {% elif richtext %}
{{ attribute|richtext_filter:obj }}
{% else %} {{attribute|linebreaks}} {% endif %}
{% if object_type == 'User' %} {% if obj.can_update_data %} {% trans "Edit this information" %} {% endif %} {% if is_owner %} {% trans "Change my password" %} {% endif %} {% elif is_owner and obj.is_editable %} {% trans "Edit this information" %} {% endif %} {% if can_generate_pdf and not restricted %} {% trans "Download as PDF"%} {% endif %} {% if obj.can_clone %} {% trans "Clone" %} {% endif %}
{% if obj.is_part or obj.is_document %} {% 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 %} {% 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 %}
{{ form.media|safe }}
{% endif %} {% endblock %}