<#assign cumber_char_comments=200 /> <#assign resHref>jsp/admin/plugins/extend/modules/comment/GetCreateComment.jsp?idExtendableResource=${idExtendableResource}&extendableResourceType=${extendableResourceType}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url}" title="#i18n{module.extend.comment.comment.labelAddComment} <@div class='position-absolute' params='style="top:15px; right: 60px;"'> <@aButton href=resHref title='' > <@icon style='plus me-1 mr-1' /> #i18n{module.extend.comment.comment.labelAddComment} <#if listComments?? && listComments?has_content> <@div class='pb-3 mb-2 pt-2 border-bottom border-info'> <@tform type='inline' class='d-flex justify-content-around is-flex is-justify-content-space-around' action='jsp/admin/plugins/extend/ViewExtenderInfo.jsp'> <@input type='hidden' name='idExtendableResource' value='${idExtendableResource}' /> <@input type='hidden' name='extendableResourceType' value='${extendableResourceType}' /> <@input type='hidden' name='extenderType' value='comment' /> <#if from_url?? && from_url?has_content && from_url != "null"><@input type='hidden' name='from_url' value='${from_url}' /> <@select name='filterPinned' default_value="${filterPinned!''}" class='form-control form-select-sm' items=listPinnedFilter /> <@select name='filterMarkAsImportant' default_value="${filterMarkAsImportant!''}" class='form-control form-select-sm' items=listMarkAsImportantFilter /> <@select name='filterState' default_value="${filterState!''}" class='form-control form-select-sm' items=listCommentStates /> <@select class='form-control form-select-sm' name='sorted_attribute_name'> <@select class='form-control form-select-sm' name='asc_sort'> <@button type='submit' color='primary' style=' ' title='#i18n{module.extend.comment.comment_info.labelSearch}' hideTitle=['xs'] buttonIcon='filter' /> <@timeline class='d-flex flex-column'> <#assign lOrder=1> <#list listComments as comment> <#assign order>style="order:<#if comment.pinned>0<#else>${lOrder}" <#assign commentIcon><#if comment.pinned>thumbtack<#elseif comment.isImportant>exclamation<#else>comment<#if comment.isAdminComment><#if !comment.published> not-published <#assign commentIconBg><#if !comment.published> bg-danger<#elseif comment.isImportant> bg-warning<#elseif comment.pinned>bg-info<#else> bg-primary <#assign commentTime> <#assign unpublishedSubComment = comment.firstUnpublishedSubComment > <#if 0 < unpublishedSubComment> <@tag color='warning' title='#i18n{module.extend.comment.comment_info.unpublishedSubComments}' tagIcon='exclamation-triangle fa-fw'>#i18n{module.extend.comment.comment_info.unpublishedSubComments} <#assign commentLabel> <#assign adminClass><#if !comment.isAdminComment> comment <@div class="d-flex justify-content-between align-items-center ${adminClass}"> <@div class='font-weight-bold'> <@icon style='user' /> ${comment.name!} <@div> <#if comment.published><@tag color='success' tagIcon='eye' title='#i18n{module.extend.comment.comment_info.labelPublished}' /><#else><@tag color='danger' tagIcon='eye-slash' title='#i18n{module.extend.comment.comment_info.labelUnpublished}' /> <@span class='dt-comment' params='data-author="${comment.name!}" data-comment="#content_${comment.idComment!}"'> ${comment.dateComment!?string["dd/MM/yyyy HH:mm"]} ${comment.email!} <#assign actions> <@tform action='jsp/admin/plugins/extend/modules/comment/DoPublishUnpublishComment.jsp#comment_${comment.idComment!}'> <@input type='hidden' name='idComment' value='${comment.idComment!}' /> <@input type='hidden' name='viewAllResources' value='${allResources?c}' /> <#if from_url?? && from_url?has_content && from_url != "null"><@input type='hidden' name='from_url' value='${from_url!}' /> <#assign subDelHref>jsp/admin/plugins/extend/modules/comment/ConfirmRemoveComment.jsp?idComment=${comment.idComment!}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url} <@aButton color='danger' href=subDelHref title='#i18n{portal.util.labelDelete}' hideTitle=['all']> <@icon style='trash' /> <#if comment.published> <@button color='danger' type='submit' name='unpublish' value='#i18n{module.extend.comment.comment_info.buttonPublish}' title='#i18n{module.extend.comment.comment_info.buttonUnpublish}' hideTitle=['all'] buttonIcon='toggle-off' /> <#else> <@button type='submit' name='publish' value='#i18n{module.extend.comment.comment_info.buttonUnpublish}" title="#i18n{module.extend.comment.comment_info.buttonPublish}' hideTitle=['all'] buttonIcon='toggle-on' /> <#if allowSubComments> <#assign subComHref>jsp/admin/plugins/extend/modules/comment/GetCreateComment.jsp?idExtendableResource=${idExtendableResource}&extendableResourceType=${extendableResourceType}&idComment=${comment.idComment}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url} <@aButton href=subComHref title='#i18n{module.extend.comment.comment_info.labelAnswer}' hideTitle=['all']> <@icon style='comment' /> <#if comment.isImportant> <#assign subImpThumb>jsp/admin/plugins/extend/modules/comment/DoCancelFlagAsImportant.jsp?idExtendableResource=${idExtendableResource}&extendableResourceType=${extendableResourceType}&idComment=${comment.idComment}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url} <@aButton color='danger' href=subImpThumb title='#i18n{module.extend.comment.comment_info.labelCancelFlagImportant}' hideTitle=['all']> <@icon style='thumbs-down' /> <#else> <#assign subImpThumb>jsp/admin/plugins/extend/modules/comment/DoFlagAsImportant.jsp?idExtendableResource=${idExtendableResource}&extendableResourceType=${extendableResourceType}&idComment=${comment.idComment}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url} <@aButton href=subImpThumb title='#i18n{module.extend.comment.comment_info.labelDoFlagImportant}' hideTitle=['all']> <@icon style='thumbs-up' /> <#if comment.pinned> <#assign subPinHref>jsp/admin/plugins/extend/modules/comment/DoCancelPinned.jsp?idExtendableResource=${idExtendableResource}&extendableResourceType=${extendableResourceType}&idComment=${comment.idComment}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url} <@aButton color='danger' href=subPinHref title='#i18n{module.extend.comment.comment_info.labelCancelPinned}' hideTitle=['all']> <@icon style='thumbtack' /> <#else> <#assign subPinHref>jsp/admin/plugins/extend/modules/comment/DoPinned.jsp?idExtendableResource=${idExtendableResource}&extendableResourceType=${extendableResourceType}&idComment=${comment.idComment}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url} <@aButton color='primary' href=subPinHref title='#i18n{module.extend.comment.comment_info.labelDoPinned}' hideTitle=['all']> <@icon style='thumbtack' /> @Extender[${comment.idComment},Comment,rating,{show:"button"}]@ <#if comment.listWorkflowActions?? && comment.listWorkflowActions?size gt 0> <#list comment.listWorkflowActions as action> <@aButton color='link' href='jsp/admin/plugins/extend/modules/comment/DoProcessWorkflowAction.jsp?id_action=${action.id}&idComment=${comment.idComment}'> <#assign iconStyle><#if action.icon.width!=-1> width="${action.icon.width}" <#if action.icon.height!=-1> height="${action.icon.height}" <@img url='image?resource_type=workflow_icon_img&id=${action.icon.id}' title='${action.name}' alt='${action.name}' params=iconStyle /> <@span class='ml-2 ms-2'>${action.name} <@timelineItem iconFace=commentIcon iconBg=commentIconBg label=commentLabel params=order > <@row class='mb-3'>
<#if use_bbcode>${comment.BBCodeComment!}<#else>${comment.comment!}
<@row class='mb-3 py-2 border-bottom'> ${actions} <#if allResources && resourceExtenderMap?? && resourceExtenderMap[comment.idExtendableResource]??> <#assign resourceExtender=resourceExtenderMap[comment.idExtendableResource]/> <#if comment.listSubComments?? && 0 < comment.listSubComments?size> <#list comment.listSubComments as subComment> <@timeline class='mt-3'> <#assign subCommentOrder>style="order:<#if subComment.pinned>0<#else>${lOrder}" <#assign subCommentIcon><#if subComment.pinned>thumbtack<#elseif subComment.isImportant>exclamation<#else>comment<#if subComment.isAdminComment><#if !subComment.published> not-published <#assign subCommentIconBg><#if !subComment.published> bg-danger<#elseif subComment.isImportant> bg-warning<#else> bg-primary <#assign subCommentLabel> <#assign adminClass><#if !comment.isAdminComment> comment <@div class="d-flex justify-content-start align-items-center is-flex is-justify-content-space-between is-align-items-center ${adminClass}"> <@div> <@icon style='user' /> ${subComment.name!} a commenté <@span class='dt-comment' params='data-author="${subComment.name!}" data-comment="#content_${subComment.idComment!}"'> ${subComment.dateComment!?string["dd/MM/yyyy HH:mm"]} ${subComment.email!} <#assign subCommentActions> <@tform action='jsp/admin/plugins/extend/modules/comment/DoPublishUnpublishComment.jsp#comment_${comment.idComment!}'> <@input type='hidden' name='viewAllResources' value='${allResources?c}' /> <@input type='hidden' name='idComment' value='${subComment.idComment!}' /> <#if from_url?? && from_url?has_content && from_url != "null"><@input type='hidden' name='from_url' value='${from_url!}' /> <#if subComment.published> <@button color='danger btn-sm' type='submit' title='#i18n{module.extend.comment.comment_info.buttonUnpublish}' name='unpublish' value='#i18n{module.extend.comment.comment_info.buttonUnpublish}' hideTitle=['all'] buttonIcon='toggle-off' /> <#else> <@button color='primary btn-sm' title='#i18n{module.extend.comment.comment_info.buttonPublish}' type='submit' name='publish' value='#i18n{module.extend.comment.comment_info.buttonPublish}' hideTitle=['all'] buttonIcon='toggle-off' /> <#assign delHref>jsp/admin/plugins/extend/modules/comment/ConfirmRemoveComment.jsp?idComment=${subComment.idComment!}<#if from_url?? && from_url?has_content && from_url != "null">&from_url=${from_url} <@aButton color='danger' title='' href=delHref title='' hideTitle=['all']> <@icon style='trash me-1' /> <#assign unpublishedSubComment = subComment.firstUnpublishedSubComment > <#if 0 < unpublishedSubComment > &from_url=${from_url}#subcomment_${unpublishedSubComment}"> #i18n{module.extend.comment.comment_info.unpublishedSubComments} <@timelineItem iconFace=subCommentIcon iconBg=subCommentIconBg label=subCommentLabel params=subCommentOrder > <@row>
<#if use_bbcode>${subComment.BBCodeComment!}<#else>${subComment.comment!}
<@row> ${subCommentActions} <#assign lOrder=lOrder+1> <@paginationAdmin paginator=paginator combo=1 showcount=0 /> <#else> <@row> <@columns> <@empty title='#i18n{module.extend.comment.comment_info.labelNoComment}' iconName='message-circle-off' subtitle=' ' />