- {% for d in NewsDate.objects.filter(end_date__gte=timezone.now(),
- news__is_moderated=True, news__type__in=["WEEKLY",
- "EVENT"]).order_by('start_date', 'end_date') %}
-
-
- {{ d.start_date|localtime|date('D d M Y') }}
-
-
- {{ d.start_date|localtime|time(DATETIME_FORMAT) }} -
- {{ d.end_date|localtime|time(DATETIME_FORMAT) }}
-
-
-
{{ d.news.summary|markdown }}
-
- {% endfor %}
+
+
+
{% trans %}Links{% endtrans %}
+
+
{% trans %}Our services{% endtrans %}
+
+
+
{% trans %}Social media{% endtrans %}
+
-
{% trans %}Birthdays{% endtrans %}
+
{% trans %}Birthdays{% endtrans %}
- {%- if user.is_subscribed -%}
+ {%- if user.was_subscribed -%}
{%- for year, users in birthdays -%}
-
@@ -141,7 +154,7 @@
{%- endfor -%}
{%- else -%}
-
{% trans %}You need an up to date subscription to access this content{% endtrans %}
+
{% trans %}You need to subscribe to access this content{% endtrans %}
{%- endif -%}
diff --git a/com/tests.py b/com/tests.py
index 399eb0e8..3f98bfdc 100644
--- a/com/tests.py
+++ b/com/tests.py
@@ -97,9 +97,7 @@ class TestCom(TestCase):
response = self.client.get(reverse("core:index"))
self.assertContains(
response,
- text=html.escape(
- _("You need an up to date subscription to access this content")
- ),
+ text=html.escape(_("You need to subscribe to access this content")),
)
def test_birthday_subscibed_user(self):
@@ -107,9 +105,16 @@ class TestCom(TestCase):
self.assertNotContains(
response,
- text=html.escape(
- _("You need an up to date subscription to access this content")
- ),
+ text=html.escape(_("You need to subscribe to access this content")),
+ )
+
+ def test_birthday_old_subscibed_user(self):
+ self.client.force_login(User.objects.get(username="old_subscriber"))
+ response = self.client.get(reverse("core:index"))
+
+ self.assertNotContains(
+ response,
+ text=html.escape(_("You need to subscribe to access this content")),
)
diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po
index df9689e5..3ae57bdf 100644
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/locale/fr/LC_MESSAGES/django.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2025-01-04 21:59+0100\n"
+"POT-Creation-Date: 2025-01-04 23:05+0100\n"
"PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Maréchal
\n"
@@ -356,9 +356,8 @@ msgstr "Nouveau compte club"
#: com/templates/com/news_admin_list.jinja com/templates/com/poster_list.jinja
#: com/templates/com/screen_list.jinja com/templates/com/weekmail.jinja
#: core/templates/core/file.jinja core/templates/core/group_list.jinja
-#: core/templates/core/page.jinja core/templates/core/poster_list.jinja
-#: core/templates/core/user_tools.jinja core/views/user.py
-#: counter/templates/counter/cash_summary_list.jinja
+#: core/templates/core/page.jinja core/templates/core/user_tools.jinja
+#: core/views/user.py counter/templates/counter/cash_summary_list.jinja
#: counter/templates/counter/counter_list.jinja
#: election/templates/election/election_detail.jinja
#: forum/templates/forum/macros.jinja
@@ -1140,7 +1139,7 @@ msgid "New Trombi"
msgstr "Nouveau Trombi"
#: club/templates/club/club_tools.jinja com/templates/com/poster_list.jinja
-#: core/templates/core/poster_list.jinja core/templates/core/user_tools.jinja
+#: core/templates/core/user_tools.jinja
msgid "Posters"
msgstr "Affiches"
@@ -1558,17 +1557,46 @@ msgstr "Événements aujourd'hui et dans les prochains jours"
msgid "Nothing to come..."
msgstr "Rien à venir..."
-#: com/templates/com/news_list.jinja
-msgid "Coming soon... don't miss!"
-msgstr "Prochainement... à ne pas rater!"
-
#: com/templates/com/news_list.jinja
msgid "All coming events"
msgstr "Tous les événements à venir"
#: com/templates/com/news_list.jinja
-msgid "Agenda"
-msgstr "Agenda"
+msgid "Links"
+msgstr "Liens"
+
+#: com/templates/com/news_list.jinja
+msgid "Our services"
+msgstr "Nos services"
+
+#: com/templates/com/news_list.jinja pedagogy/templates/pedagogy/guide.jinja
+msgid "UV Guide"
+msgstr "Guide des UVs"
+
+#: com/templates/com/news_list.jinja core/templates/core/base/navbar.jinja
+msgid "Matmatronch"
+msgstr "Matmatronch"
+
+#: com/templates/com/news_list.jinja core/templates/core/base/navbar.jinja
+#: core/templates/core/user_tools.jinja
+msgid "Elections"
+msgstr "Élections"
+
+#: com/templates/com/news_list.jinja
+msgid "Social media"
+msgstr "Réseaux sociaux"
+
+#: com/templates/com/news_list.jinja
+msgid "Discord"
+msgstr "Discord"
+
+#: com/templates/com/news_list.jinja
+msgid "Facebook"
+msgstr "Facebook"
+
+#: com/templates/com/news_list.jinja
+msgid "Instagram"
+msgstr "Instagram"
#: com/templates/com/news_list.jinja
msgid "Birthdays"
@@ -1580,11 +1608,10 @@ msgid "%(age)s year old"
msgstr "%(age)s ans"
#: com/templates/com/news_list.jinja com/tests.py
-msgid "You need an up to date subscription to access this content"
-msgstr "Votre cotisation doit être à jour pour accéder à cette section"
+msgid "You need to subscribe to access this content"
+msgstr "Vous devez cotiser pour accéder à ce contenu"
#: com/templates/com/poster_edit.jinja com/templates/com/poster_list.jinja
-#: core/templates/core/poster_list.jinja
msgid "Poster"
msgstr "Affiche"
@@ -1598,15 +1625,15 @@ msgid "Posters - edit"
msgstr "Affiche - modifier"
#: com/templates/com/poster_list.jinja com/templates/com/screen_list.jinja
-#: core/templates/core/poster_list.jinja sas/templates/sas/main.jinja
+#: sas/templates/sas/main.jinja
msgid "Create"
msgstr "Créer"
-#: com/templates/com/poster_list.jinja core/templates/core/poster_list.jinja
+#: com/templates/com/poster_list.jinja
msgid "Moderation"
msgstr "Modération"
-#: com/templates/com/poster_list.jinja core/templates/core/poster_list.jinja
+#: com/templates/com/poster_list.jinja
msgid "No posters"
msgstr "Aucune affiche"
@@ -2233,10 +2260,6 @@ msgstr "Les clubs de L'AE"
msgid "Others UTBM's Associations"
msgstr "Les autres associations de l'UTBM"
-#: core/templates/core/base/navbar.jinja core/templates/core/user_tools.jinja
-msgid "Elections"
-msgstr "Élections"
-
#: core/templates/core/base/navbar.jinja
msgid "Big event"
msgstr "Grandes Activités"
@@ -2264,10 +2287,6 @@ msgstr "Eboutic"
msgid "Services"
msgstr "Services"
-#: core/templates/core/base/navbar.jinja
-msgid "Matmatronch"
-msgstr "Matmatronch"
-
#: core/templates/core/base/navbar.jinja launderette/models.py
#: launderette/templates/launderette/launderette_book.jinja
#: launderette/templates/launderette/launderette_book_choose.jinja
@@ -4859,10 +4878,6 @@ msgstr "signalant"
msgid "reason"
msgstr "raison"
-#: pedagogy/templates/pedagogy/guide.jinja
-msgid "UV Guide"
-msgstr "Guide des UVs"
-
#: pedagogy/templates/pedagogy/guide.jinja
#, python-format
msgid "%(display_name)s"
diff --git a/locale/fr/LC_MESSAGES/djangojs.po b/locale/fr/LC_MESSAGES/djangojs.po
index 4c7c5dec..a8b7d40d 100644
--- a/locale/fr/LC_MESSAGES/djangojs.po
+++ b/locale/fr/LC_MESSAGES/djangojs.po
@@ -7,7 +7,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2025-01-04 22:00+0100\n"
+"POT-Creation-Date: 2025-01-04 23:07+0100\n"
"PO-Revision-Date: 2024-09-17 11:54+0200\n"
"Last-Translator: Sli \n"
"Language-Team: AE info \n"
@@ -17,6 +17,10 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+#: com/static/bundled/com/components/ics-calendar-index.ts
+msgid "More info"
+msgstr "Plus d'informations"
+
#: core/static/bundled/core/components/ajax-select-base.ts
msgid "Remove"
msgstr "Retirer"