+ {% for date in dates_group %}
+
-
- {% if date.news.club.logo %}
-
- {% else %}
-
- {% endif %}
-
- {% else %}
-
-
- - - {{ date.news.title }} - -
- {{ date.news.club }} -
- -
-
+ {% 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 %}
+
+
+ {% if date.news.club.logo %}
+
+ {% else %}
+
+ {% endif %}
+
+
+
-
- {% endfor %}
+
+ {% endfor %}
+
+ {{ date.news.summary|markdown }}
-
-
- {{ date.news.summary|markdown }}
-
- {% trans %}Nothing to come...{% endtrans %}
-
- {% endfor %}
+ {% else %}
+
+ {% trans %}Nothing to come...{% endtrans %}
+
+ {% endfor %}
+