{% if element.isPending %}
{% set voteEnabled = config.isFeatureAvailable('vote') or config.isFeatureActivated('vote') and config.features.vote.hasRole('user') %}
{% set class = 'validation-process-info' if voteEnabled else '' %}
{{ 'new'|i18n ~ ' ' ~ 'element'|i18n if element.status == ElementStatus.PendingAdd else 'modification.plural'|i18n }}
{{ 'pending.validation'|i18n }}
{% set isAdmin = config.isFeatureAvailable('directModeration') %}
{# Display vote button it can it's available for user, and instead javascript component will open login modal #}
{% if voteEnabled or isAdmin %}
{{ 'decide'|i18n if isAdmin else 'vote'|i18n }}
{% endif %}
{% endif %}
{% set moderationStates = {
'-2':'geolocation.error',
'-1':'no.category.provided',
'0':'no.moderation.necessary',
'1':'errors.reported',
'2':'non.consensual.votes',
'3':'pending.for.too.long',
'4':'potential.duplicate'
}
%}
{% if element.needsModeration and config.isFeatureAvailable('moderation') %}
{{ moderationStates[element.moderationState]|i18n }}
{% if config.isFeatureAvailable('directModeration') %}
{% if element.moderationState in [ElementModerationState.ReportsSubmitted, ElementModerationState.PossibleDuplicate] %}
{{ 'mark.as.resolved'|i18n }}
{% endif %}
{% endif %}
{% endif %}
{# div used to show the reponse message from API actions #}