{% extends 'base.html.twig' %} {% block title %}Espace de modération{% endblock %} {% block meta_description %} Tableau de bord de modération {% endblock %} {% block body %}
bearded dwarf forging a sword above "SquadForge" title SQUADFORGE
{# Show menu Burger (mobile) #}
{# HeaderSouligne + Bandeau avertissement muted #} {% if app.user and app.user.muted and time_diff_future(app.user.endDateStatus) != false %}
Vous êtes actuellement réduit au silence ( fin dans {{ time_diff_future(app.user.endDateStatus) }} )
{% else %}
{% endif %}

Espace Modération

Validations des publications

Topics en attente

{% if lastWaitingTopics|length == 0 %}

Aucun topic en attente de validation

{% else %}
{% for topic in lastWaitingTopics %}
{{ topic.title|capitalize }}
{{ topic.user.pseudo|capitalize }} {{ time_diff(topic.publishDate) }}

{{ topic.firstMsg }}

{# OnClick TopicCard: détails et boutons validation/refus #}
{% endfor %}
{% endif %}

Médias en attente

{% if lastWaitingMedias|length == 0 %}

Aucun média en attente de validation

{% else %}
{% for media in lastWaitingMedias %}
{{ media.title|capitalize }} {{ time_diff(media.publishDate) }}
media
{# OnClick MediaCard: détails et boutons validation/refus #} {% endfor %}
{% endif %}

Contrôle des publications

{# Section Signalements/Reports #} {# Ajax apercu on clic #}

Signalements

{% if reports|length > 0 %} {% set index = 0 %} {% for report in reports %}
{% if report.objectType == "topicPost" or report.objectType == "mediaPost" %} {% set objectType = "post" %} {# {% elseif report.objectType == "media" %} #} {# MediaPreview #} {% else %} {% set objectType = report.objectType %} {% endif %}
{{ objectType|capitalize }} #{{ report.objectId }}
Signalements: {{ report.nbrReports }}
{# Détails motifs #}
VOIR
{# Partie cachée de la reportCard (chargé Ajax) #}
{# Loader pendant ajax #} {# LOADING ... #}
Loading...

Innocenter
{# Status author si actuellement muted/banned #}
{# Toggle mute/ban modes #}
Mute Ban Aucun
{# censure form #}
{# Mode ban/mute JS #} {# Date fin de ban/mute si mode != aucun #}
{% if report.objectType == "topicPost" or report.objectType == "mediaPost" %} {% set objectType = "commentaire" %} {% else %} {% set objectType = report.objectType %} {% endif %}
{% set index = index + 1 %} {% endfor %} {% else %}

Aucun signalement en attente

{% endif %}
{# Ajax Preview cible reportCard + btn décisions #}

Censures

{{ form_start(formAddCensoredWord) }}
{{ form_widget(formAddCensoredWord.word) }} {{ form_widget(formAddCensoredWord.submit) }}
{{ form_end(formAddCensoredWord) }}
{% for censureWord in censureWords %}
"{{ censureWord.word }}"
{{ time_diff(censureWord.creationDate) }} par {{ censureWord.user.pseudo|capitalize }}
{% endfor %}
{% endblock %}