mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +00:00 
			
		
		
		
	remove alpine instructions for moderated news
This commit is contained in:
		| @@ -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 }}"/> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user