mirror of
https://github.com/ae-utbm/sith.git
synced 2025-01-31 03:11:10 +00:00
remove alpine instructions for moderated news
This commit is contained in:
parent
96f5874786
commit
8f1564185a
@ -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 }}"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user