{% extends 'base.html.twig' %} {% block title %}{{ ('documentType_' ~ document.classShort)|trans }}: {{ document.getTitle }}{% endblock %} {% block subtitle %}#{{ document.id }}: {{ document.getTitle }} {% endblock %} {% block body %} {% set groupLogo = 'img/nologo.png' %} {% if document.mainGroup %} {% if document.mainGroup.imageSize != 0 %} {% set groupLogo = 'uploads/groups/' ~ document.mainGroup.imageName %} {% endif %} {% endif %}
{% if document.archive %}
{% trans %}title_document_archived{% endtrans %}
{% endif %} {% if shared is not defined %} {% if document.AllowShare %}
{% trans %}title_document_shared{% endtrans %}
{% endif %} {% endif %}

{{document.mainGroup.name}}

{{ ('documentType_' ~ document.classShort)|trans }} #{{ document.getId }} : {{ document.getTitle }}


{% include 'document/types/' ~ document.classShort ~ '.html.twig' with {'document': document} %}

{% if shared is not defined and history |length > 1 %}

{% trans %}title_document_edited{% endtrans %} {{ history |length -1 }} {% trans %}since_its_creation{% endtrans %}. {% trans %}button_view_history{% endtrans %}

{% endif %}
{{ document.creator.fullname }}, {% trans %}for{% endtrans %} {{ document.mainGroup.name }}
{% trans %}title_created_at{% endtrans %} {{ document.createdAt|date('_datetime.format'|trans) }} {% if shared is not defined %}{% include '_cells/documentActions.html.twig' with {'document': document} %} {% endif %}

{% trans %}title_comments{% endtrans %} {% if shared is not defined %} {% trans %}button_add_comment{% endtrans %}{% endif %}


    {% for c in document.comments %}
  • {{ c.creator.fullname }} {{c.creator.mainGroup ? c.creator.mainGroup.shortname : 'No Group'}}, {% trans %}title_created_at{% endtrans %} {{ c.createdAt|date('_datetime.format'|trans) }}
    {{ c.content | raw }} {% if shared is not defined %}{% include '_cells/commentActions.html.twig' with {'comment': c} %}{% endif %}
  • {% endfor %}
{% if shared is not defined %}

{% trans %}title_comment_add{% endtrans %}


{{ form(formComment) }}
{% endif %}
{% if document.directory is defined and document.directory is not null %}

{% trans %}title_directory_linked{% endtrans %}


{% include '_cells/directoryCard.html.twig' with {'directory': document.directory} %} {% endif %} {% if document.user is defined and document.user is not null %}

{% trans %}title_user_linked{% endtrans %}


{% include '_cells/userInformations.html.twig' with {'user': document.user} %} {% endif %}
{% endblock %}