remove alpine instructions for moderated news

This commit is contained in:
imperosol 2025-01-25 23:32:55 +01:00
parent 96f5874786
commit 8f1564185a

View File

@ -48,13 +48,22 @@
</div>
<div class="news_events_group_items">
{% for date in dates_group %}
<article class="news_event" x-data="{newsState: AlertState.PENDING}">
<article
class="news_event"
{%- if not date.news.is_moderated -%}
x-data="{newsState: AlertState.PENDING}"
{%- endif -%}
>
{% if not date.news.is_moderated %}
{# if a non moderated news is in the object list,
the logged user is either an admin or the news author #}
{{ news_moderation_alert(date.news, user, "newsState") }}
{% endif %}
<div x-show="newsState !== AlertState.DELETED">
<div
{% if not date.news.is_moderated -%}
x-show="newsState !== AlertState.DELETED"
{%- endif -%}
>
<header class="row gap">
{% if date.news.club.logo %}
<img src="{{ date.news.club.logo.url }}" alt="{{ date.news.club }}"/>