...
 
Commits (2)
......@@ -40,26 +40,24 @@
<div id="birthdays">
<div id="birthdays_title">{% trans %}Birthdays{% endtrans %}</div>
{% if user.is_authenticated %}
<div id="birthdays_content">
{% if user.is_subscribed %}
<ul class="birthdays_year">
{% for d in birthdays.dates('date_of_birth', 'year', 'DESC') %}
<li>
{% trans age=timezone.now().year - d.year %}{{ age }} year old{% endtrans %}
<ul>
{% for u in birthdays.filter(date_of_birth__year=d.year) %}
<li><a href="{{ u.get_absolute_url() }}">{{ u.get_short_name() }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
<div id="birthdays_content">
{% if user.is_subscribed %}
<ul class="birthdays_year">
{% for d in birthdays.dates('date_of_birth', 'year', 'DESC') %}
<li>
{% trans age=timezone.now().year - d.year %}{{ age }} year old{% endtrans %}
<ul>
{% for u in birthdays.filter(date_of_birth__year=d.year) %}
<li><a href="{{ u.get_absolute_url() }}">{{ u.get_short_name() }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% else %}
<p>{% trans %}You need to update your subscription to access to this content{% endtrans %}</p>
<p>{% trans %}You need an up to date subscription to access this content{% endtrans %}</p>
{% endif %}
{% endif %}
</div>
</div>
</div>
......
......@@ -89,7 +89,7 @@ class ComTest(TestCase):
self.assertContains(
response,
text=html.escape(
_("You need to update your subscription to access to this content")
_("You need an up to date subscription to access this content")
),
)
......@@ -99,6 +99,6 @@ class ComTest(TestCase):
self.assertNotContains(
response,
text=html.escape(
_("You need to update your subscription to access to this content")
_("You need an up to date subscription to access this content")
),
)
......@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-16 17:18+0200\n"
"POT-Creation-Date: 2019-08-17 18:22+0200\n"
"PO-Revision-Date: 2016-07-18\n"
"Last-Translator: Skia <skia@libskia.so>\n"
"Language-Team: AE info <ae.info@utbm.fr>\n"
......@@ -1731,8 +1731,8 @@ msgstr "Anniversaires"
msgid "%(age)s year old"
msgstr "%(age)s ans"
#: com/templates/com/news_list.jinja:59
msgid "You need to update your subscription to access to this content"
#: com/templates/com/news_list.jinja:59 com/tests.py:92 com/tests.py:102
msgid "You need an up to date subscription to access this content"
msgstr "Votre cotisation doit être à jour pour accéder à cette section"
#: com/templates/com/news_list.jinja:92
......@@ -2376,10 +2376,6 @@ msgstr "404. Non trouvé"
msgid "500, Server Error"
msgstr "500, Erreur Serveur"
#: core/templates/core/base.jinja:5 core/templates/core/index.jinja:4
msgid "Welcome!"
msgstr "Bienvenue!"
#: core/templates/core/base.jinja:49
msgid "Username"
msgstr "Nom d'utilisateur"
......