{% set here = "components/element/" %} {# -------------- #} {# ELEMENT INFO #} {# -------------- #}
  • {% set pendingClass = 'pending' if (element.isPending or element.isDeleted) and config.isFeatureAvailable('pending') else '' %} {% set isHistoryAvailable = config.isFeatureAvailable('elementHistory') and element.contributions and element.contributions.length > 0 %} {# HEADER #}
    {% include here ~ 'header.html.njk' %}
    {# INTERACTIVE SECTION #} {% include here ~ 'interactive-section.html.njk' %} {# MENU #} {% include here ~ 'menu.html.njk' %} {# Tabs selector #} {% if isHistoryAvailable %} {% endif %} {# BODY #}
    {% if element.images.length %}
    {% endif %}
    {% if element.images.length %} {# transparent overlay to let the image visible #}
    {% endif %}
    {# Votes and reports #} {% if config.isFeatureAvailable('directModeration') %} {% include here ~ "admin/pending-contribution.html.njk" %} {% import here ~ "admin/votes-reports.html.njk" as VotesReportsRenderer %} {{ VotesReportsRenderer.render('Votes', element.votes, smallWidth) }} {{ VotesReportsRenderer.render('Erreurs signalées', element.reports, smallWidth) }} {% endif %} {# Element description #} {{ customBody|safe }}
    {# History #} {% if isHistoryAvailable %}
    {% include here ~ "admin/contributions.html.njk" %}
    {% endif %}