<#assign canCommentOrDelete = true> <#if commentClosed?has_content && commentClosed> <#assign canCommentOrDelete = false> <#if canCommentOrDelete> <#include "/skin/plugins/extend/modules/comment/add_comment.html" /> <#-- Affiche la liste des commentaires postés, pour une PROPOSITION comme pour un ATELIER --> <#if listComments?? && listComments?has_content> <#-- Nombre de commentaires postés -->
<#if listComments?size > 0>

${nbPublishedComments} commentaire<#if nbPublishedComments > 1>s

<#-- Liste des commentaires --> <#list listComments as comment>
<#-- *********************************************************************************** * COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENT * * COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENTS COMMENT * *********************************************************************************** -->
<#-- Selon le cas : avatar de l'usager, de l'équipe du BP ou de la RATP --> <#if comment.isAdminComment> <#if (comment.name!'') = 'RATP'> ${comment.name!} <#else> Admin <#else> ${comment.name!}
<#-- Nom du commentateur et bouton de suppression (sauf si non prévu, ou sous-commentaires présents) -->

${comment.name!} le ${comment.dateComment!?string("dd/MM/yyyy")} <#if canCommentOrDelete> <#if registeredUserEmail??&& comment.email ?? && comment.email == registeredUserEmail && comment.numberSubComments <= 0 > <#if canDeleteComments?has_content && canDeleteComments>

<#-- Like de commentaire si l'usager est connecté --> <#if registeredUserEmail?? >
@Extender[${comment.idComment},comment,rating,{show:"all"}]@
<#if use_bbcode> ${comment.BBCodeComment!} <#else> ${comment.comment!}
<#-- *********************************************************************************** * SUB-COMMENT SUB-COMMENT SUB-COMMENT SUB-COMMENT SUB-COMMENT SUB-COMME * * SUB-COMMENT SUB-COMMENT SUB-COMMENT SUB-COMMENT SUB-COMMENT SUB-COMME * *********************************************************************************** -->
<#if comment.listSubComments?? && 0 < comment.listSubComments?size && displaySubComments>
class="commentComments"> <#list comment.listSubComments as subComment>
<#-- Bouton "répondre" et avatar -->
<#if !subComment.isAdminComment> ${subComment.name!} <#else> Admin
<#-- Commentaire et bouton de suppression -->

#i18n{module.extend.comment.view_comments.labelPosted} ${subComment.dateComment!} #i18n{module.extend.comment.view_comments.labelBy} ${subComment.name!} <#if canCommentOrDelete> <#if subComment.email == registeredUserEmail && subComment.numberSubComments <= 0 > <#if canDeleteComments?has_content && canDeleteComments>

<#if use_bbcode> ${subComment.BBCodeComment!} <#else> ${subComment.comment!}

<#-- Bouton "like" --> <#if registeredUserEmail??>
@Extender[${subComment.idComment},comment,rating,{show:"all"}]@
<#-- Formulaire de réponse à un commentaire --> <#if canCommentOrDelete && allowSubComments && myLuteceUser??>
<#if returnToCommentList?? && returnToCommentList> <#if from_url?? && from_url?has_content && from_url != "null"> <#if !commentConfig.enabledAuthMode>
<#else>
<#if is_active_captcha>
${captcha!}
<#if addCommentPosition = 0>
<#-- Selon le cas, affiche ou supprime la barre d'action des commentaires -->