diff --git a/lacommunaute/templates/forum_conversation/topic_create.html b/lacommunaute/templates/forum_conversation/topic_create.html index a0c1e58f5..449cd1fc2 100644 --- a/lacommunaute/templates/forum_conversation/topic_create.html +++ b/lacommunaute/templates/forum_conversation/topic_create.html @@ -6,7 +6,11 @@ {% endblock sub_title %} {% block content %}
-
{% include "partials/banner.html" %}
+
+ {% if not user.is_authenticated %} + {% include 'partials/anonymous_banner.html' %} + {% endif %} +

{{ forum.name }}

diff --git a/lacommunaute/templates/forum_moderation/moderation_queue/list.html b/lacommunaute/templates/forum_moderation/moderation_queue/list.html new file mode 100644 index 000000000..e006f7701 --- /dev/null +++ b/lacommunaute/templates/forum_moderation/moderation_queue/list.html @@ -0,0 +1,92 @@ +{% extends 'board_base.html' %} +{% load i18n %} +{% load forum_member_tags %} +{% block sub_title %} + {% trans "Moderation queue" %} +{% endblock sub_title %} +{% block content %} +
+
+

{% trans "Moderation queue" %}

+
+
+
+
+ {% if paginator.count > 0 %} +

+ {% blocktrans with paginator.count as topic_length %}{{ topic_length }} posts found{% endblocktrans %} +

+ {% endif %} +
+
+ {% with "pagination-sm justify-content-end" as pagination_size %} + {% include "partials/pagination.html" %} + {% endwith %} +
+
+
+
+
+
+
+
+

{% trans "Moderation queue" %}

+
+
{% trans "Topic" %}
+
{% trans "Forum" %}
+
+
+
+ {% for post in posts %} +
+
+ + + + +
+ {{ post.subject }} +
+
+ {% if post.poster %} + {% url 'member:profile' post.poster_id as poster_url %} + {% blocktrans trimmed with poster_url=poster_url username=post.poster|forum_member_display_name creation_date=post.created %} + By: {{ username }} on {{ creation_date }} + {% endblocktrans %} + {% else %} + {% blocktrans trimmed with poster_username=post.username creation_date=post.created %} + By: {{ poster_username }} on {{ creation_date }} + {% endblocktrans %} + {% endif %} +
+
+
+
+
+ {% if post.is_topic_head %} + {% trans "New topic" %} + {% else %} + {{ post.topic.subject }} + {% endif %} +
+ +
+ {% empty %} +
+
{% trans "No posts awaiting approval." %}
+
+ {% endfor %} +
+
+
+
+
+
+ {% with "pagination-sm justify-content-end" as pagination_size %} + {% include "partials/pagination.html" %} + {% endwith %} +
+
+{% endblock content %} diff --git a/lacommunaute/templates/pages/home.html b/lacommunaute/templates/pages/home.html index a822cbec1..2a1622510 100644 --- a/lacommunaute/templates/pages/home.html +++ b/lacommunaute/templates/pages/home.html @@ -18,7 +18,13 @@
-
{% include 'partials/promotion_banner.html' %}
+
+ {% if user.is_authenticated %} + {% include 'partials/promotion_banner.html' %} + {% else %} + {% include 'partials/anonymous_banner.html' %} + {% endif %} +
diff --git a/lacommunaute/templates/partials/anonymous_banner.html b/lacommunaute/templates/partials/anonymous_banner.html new file mode 100644 index 000000000..19c597677 --- /dev/null +++ b/lacommunaute/templates/partials/anonymous_banner.html @@ -0,0 +1,14 @@ +
+ +
+
+ +
+
+

+ Pour que vos questions et réponses apparaissent plus rapidement dans l'espace d'échanges, nous vous recommandons de vous connecter avec votre compte Inclusion Connect. + Je me connecte ! +

+
+
+
diff --git a/lacommunaute/templates/partials/header_nav_primary_items.html b/lacommunaute/templates/partials/header_nav_primary_items.html index 73ca3b91e..5a62b6ba6 100644 --- a/lacommunaute/templates/partials/header_nav_primary_items.html +++ b/lacommunaute/templates/partials/header_nav_primary_items.html @@ -51,6 +51,12 @@ Accéder à mes thématiques {% if user.is_superuser %} +
  • + +
  • +
  • + Moderation Queue +