diff --git a/lacommunaute/pages/tests/test_homepage.py b/lacommunaute/pages/tests/test_homepage.py index 0e121aaa4..2b3851644 100644 --- a/lacommunaute/pages/tests/test_homepage.py +++ b/lacommunaute/pages/tests/test_homepage.py @@ -12,7 +12,6 @@ def test_context_data(client, db): topic = TopicFactory(with_post=True, forum=ForumFactory()) - news = TopicFactory(with_post=True, forum=ForumFactory(kind=ForumKind.NEWS)) article = ForumFactory(parent=ForumFactory(type=1)) disapproved_topic = TopicFactory(with_post=True, forum=ForumFactory()) @@ -26,7 +25,6 @@ def test_context_data(client, db): assert response.status_code == 200 assert response.context_data["topics_public"].get() == topic - assert response.context_data["topics_newsfeed"].get() == news assert response.context_data["forums_category"].get() == article diff --git a/lacommunaute/pages/views.py b/lacommunaute/pages/views.py index f62474fe6..dabbc763d 100644 --- a/lacommunaute/pages/views.py +++ b/lacommunaute/pages/views.py @@ -95,7 +95,6 @@ def get_context_data(self, **kwargs: Any) -> dict[str, Any]: context["topics_public"] = Topic.objects.filter(forum__kind=ForumKind.PUBLIC_FORUM, approved=True).order_by( "-created" )[:4] - context["topics_newsfeed"] = Topic.objects.filter(forum__kind=ForumKind.NEWS).order_by("-last_post_on")[:4] context["forums_category"] = Forum.objects.filter(kind=ForumKind.PUBLIC_FORUM, parent__type=1).order_by( "-updated" )[:4] diff --git a/lacommunaute/templates/pages/home.html b/lacommunaute/templates/pages/home.html index 8e6c9f2c6..7dfdbfc77 100644 --- a/lacommunaute/templates/pages/home.html +++ b/lacommunaute/templates/pages/home.html @@ -111,34 +111,7 @@

-
-
-
-

- - Les dernières actualités -

-
-
-
    - {% for topic in topics_newsfeed %} -
  • - {{ topic.subject }} - {% include "forum_conversation/partials/poster_light.html" with poster=None dated=topic.created only %} -
  • - {% endfor %} -
-
- -
-
-
+

diff --git a/lacommunaute/templates/partials/footer.html b/lacommunaute/templates/partials/footer.html index e3b608aee..39e771638 100644 --- a/lacommunaute/templates/partials/footer.html +++ b/lacommunaute/templates/partials/footer.html @@ -12,9 +12,6 @@
  • {% trans "Discussion area" %}
  • -
  • - Actualités -
  • {% trans "Documents" %}
  • diff --git a/lacommunaute/templates/partials/header_nav_secondary_items.html b/lacommunaute/templates/partials/header_nav_secondary_items.html index 5fb344e7b..6d0a7dd66 100644 --- a/lacommunaute/templates/partials/header_nav_secondary_items.html +++ b/lacommunaute/templates/partials/header_nav_secondary_items.html @@ -3,7 +3,6 @@ {% load theme_inclusion %} {% url 'pages:home' as home_url %} {% url 'forum_conversation_extension:topics' as publicforum_url %} -{% url 'forum_conversation_extension:newsfeed' as newsfeed_url %} {% url 'forum_extension:documentation' as documentation_url %} {% url 'members:seekers' as seeker_url %} {% url 'search:index' as search_url %} @@ -15,9 +14,6 @@
  • {% trans "Discussion area" %}
  • -
  • - Actualités -