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>
<div class="news_events_group_items"> <div class="news_events_group_items">
{% for date in dates_group %} {% 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 not date.news.is_moderated %}
{# if a non moderated news is in the object list, {# if a non moderated news is in the object list,
the logged user is either an admin or the news author #} the logged user is either an admin or the news author #}
{{ news_moderation_alert(date.news, user, "newsState") }} {{ news_moderation_alert(date.news, user, "newsState") }}
{% endif %} {% endif %}
<div x-show="newsState !== AlertState.DELETED"> <div
{% if not date.news.is_moderated -%}
x-show="newsState !== AlertState.DELETED"
{%- endif -%}
>
<header class="row gap"> <header class="row gap">
{% if date.news.club.logo %} {% if date.news.club.logo %}
<img src="{{ date.news.club.logo.url }}" alt="{{ date.news.club }}"/> <img src="{{ date.news.club.logo.url }}" alt="{{ date.news.club }}"/>