Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-07-06 23:31:37 +02:00
parent 18f3ce4023
commit 42425c392d
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 4 additions and 4 deletions

View File

@ -1029,7 +1029,7 @@ class Participation(models.Model):
reviews_template_begin = f"{settings.STATIC_URL}eteam/Written_review."
reviews_templates = "".join(f"<a href='{reviews_template_begin}{ext}'>{ext.upper()}</a>"
for ext in ["pdf", "tex"])
reviews_templates_content = f"<p>" + _('Templates:') + " {reviews_templates}</p>"
reviews_templates_content = "<p>" + _('Templates:') + f" {reviews_templates}</p>"
content = reporter_content + opponent_content + reviewer_content + observer_content \
+ reviews_templates_content
@ -1093,7 +1093,7 @@ class Participation(models.Model):
reviews_template_begin = f"{settings.STATIC_URL}eteam/Written_review."
reviews_templates = "".join(f"<a href='{reviews_template_begin}{ext}'>{ext.upper()}</a>"
for ext in ["pdf", "tex"])
reviews_templates_content = f"<p>" + _('Templates:') + " {reviews_templates}</p>"
reviews_templates_content = "<p>" + _('Templates:') + f" {reviews_templates}</p>"
content = reporter_content + opponent_content + reviewer_content + observer_content \
+ reviews_templates_content
@ -1258,8 +1258,8 @@ class Pool(models.Model):
for passage in passages), start=[str(_("Role")), ""]),
sum(([_('Writing') + f" (/{20 if settings.TFJM_APP == 'TFJM' else 10})",
_('Oral') + f" (/{20 if settings.TFJM_APP == 'TFJM' else 10})",
_('Writing') + f" (/10)", _('Oral') + f" (/10)", _('Writing') + f" (/10)", _('Oral') + f" (/10)"]
+ ([_('Writing') + f" (/10)", _('Oral') + f" (/10)"] if has_observer else [])
_('Writing') + " (/10)", _('Oral') + " (/10)", _('Writing') + " (/10)", _('Oral') + " (/10)"]
+ ([_('Writing') + " (/10)", _('Oral') + " (/10)"] if has_observer else [])
for _passage in passages), start=[str(_("Juree")), ""]),
]