mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 06:22:22 +00:00
Fix important information for participants
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
6ce179bd60
commit
32b2d7239c
@ -750,19 +750,19 @@ class Participation(models.Model):
|
|||||||
draw_url = reverse_lazy("draw:index")
|
draw_url = reverse_lazy("draw:index")
|
||||||
solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,))
|
solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,))
|
||||||
defender_content = format_lazy(defender_text, draw_url=draw_url,
|
defender_content = format_lazy(defender_text, draw_url=draw_url,
|
||||||
solution_url=solution_url, problem=defender_passage.problem)
|
solution_url=solution_url, problem=defender_passage.solution_number)
|
||||||
|
|
||||||
opponent_text = _("<p>You will oppose the solution of the team {opponent} on the problem {problem}. "
|
opponent_text = _("<p>You will oppose the solution of the team {opponent} on the problem {problem}. "
|
||||||
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
||||||
passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,))
|
passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,))
|
||||||
opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram,
|
opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram,
|
||||||
problem=opponent_passage.problem, passage_url=passage_url)
|
problem=opponent_passage.solution_number, passage_url=passage_url)
|
||||||
|
|
||||||
reporter_text = _("<p>You will report the solution of the team {reporter} on the problem {problem}. "
|
reporter_text = _("<p>You will report the solution of the team {reporter} on the problem {problem}. "
|
||||||
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
||||||
passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,))
|
passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,))
|
||||||
reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram,
|
reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram,
|
||||||
problem=reporter_passage.problem, passage_url=passage_url)
|
problem=reporter_passage.solution_number, passage_url=passage_url)
|
||||||
|
|
||||||
content = defender_content + opponent_content + reporter_content
|
content = defender_content + opponent_content + reporter_content
|
||||||
informations.append({
|
informations.append({
|
||||||
@ -782,19 +782,19 @@ class Participation(models.Model):
|
|||||||
draw_url = reverse_lazy("draw:index")
|
draw_url = reverse_lazy("draw:index")
|
||||||
solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,))
|
solution_url = reverse_lazy("participation:solution_detail", args=(defender_passage.defended_solution.pk,))
|
||||||
defender_content = format_lazy(defender_text, draw_url=draw_url,
|
defender_content = format_lazy(defender_text, draw_url=draw_url,
|
||||||
solution_url=solution_url, problem=defender_passage.problem)
|
solution_url=solution_url, problem=defender_passage.solution_number)
|
||||||
|
|
||||||
opponent_text = _("<p>You will oppose the solution of the team {opponent} on the problem {problem}. "
|
opponent_text = _("<p>You will oppose the solution of the team {opponent} on the problem {problem}. "
|
||||||
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
||||||
passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,))
|
passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,))
|
||||||
opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram,
|
opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram,
|
||||||
problem=opponent_passage.problem, passage_url=passage_url)
|
problem=opponent_passage.solution_number, passage_url=passage_url)
|
||||||
|
|
||||||
reporter_text = _("<p>You will report the solution of the team {reporter} on the problem {problem}. "
|
reporter_text = _("<p>You will report the solution of the team {reporter} on the problem {problem}. "
|
||||||
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
"You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
|
||||||
passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,))
|
passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,))
|
||||||
reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram,
|
reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram,
|
||||||
problem=reporter_passage.problem, passage_url=passage_url)
|
problem=reporter_passage.solution_number, passage_url=passage_url)
|
||||||
|
|
||||||
content = defender_content + opponent_content + reporter_content
|
content = defender_content + opponent_content + reporter_content
|
||||||
informations.append({
|
informations.append({
|
||||||
|
Loading…
Reference in New Issue
Block a user