mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 14:32:19 +01:00 
			
		
		
		
	Add links to solutions also for second round
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -748,14 +748,14 @@ class Participation(models.Model):
 | 
			
		||||
                              "<p>For the first round, you will defend "
 | 
			
		||||
                              "<a href='{solution_url}'>your solution of the problem {problem}</a>.</p>")
 | 
			
		||||
            draw_url = reverse_lazy("draw:index")
 | 
			
		||||
            solution_url = defender_passage.defended_solution.url
 | 
			
		||||
            solution_url = defender_passage.defended_solution.file.url
 | 
			
		||||
            defender_content = format_lazy(defender_text, draw_url=draw_url,
 | 
			
		||||
                                           solution_url=solution_url, problem=defender_passage.solution_number)
 | 
			
		||||
 | 
			
		||||
            opponent_text = _("<p>You will oppose the solution of the team {opponent} on the "
 | 
			
		||||
                              "<a href='{solution_url}'>problem {problem}</a>. "
 | 
			
		||||
                              "You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
 | 
			
		||||
            solution_url = opponent_passage.defended_solution.url
 | 
			
		||||
            solution_url = opponent_passage.defended_solution.file.url
 | 
			
		||||
            passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,))
 | 
			
		||||
            opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram,
 | 
			
		||||
                                           solution_url=solution_url,
 | 
			
		||||
@@ -764,7 +764,7 @@ class Participation(models.Model):
 | 
			
		||||
            reporter_text = _("<p>You will report the solution of the team {reporter} on the "
 | 
			
		||||
                              "<a href='{solution_url}'>problem {problem}. "
 | 
			
		||||
                              "You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
 | 
			
		||||
            solution_url = reporter_passage.defended_solution.url
 | 
			
		||||
            solution_url = reporter_passage.defended_solution.file.url
 | 
			
		||||
            passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,))
 | 
			
		||||
            reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram,
 | 
			
		||||
                                           solution_url=solution_url,
 | 
			
		||||
@@ -786,18 +786,22 @@ class Participation(models.Model):
 | 
			
		||||
            defender_text = _("<p>For the second round, you will defend "
 | 
			
		||||
                              "<a href='{solution_url}'>your solution of the problem {problem}</a>.</p>")
 | 
			
		||||
            draw_url = reverse_lazy("draw:index")
 | 
			
		||||
            solution_url = defender_passage.defended_solution.url
 | 
			
		||||
            solution_url = defender_passage.defended_solution.file.url
 | 
			
		||||
            defender_content = format_lazy(defender_text, draw_url=draw_url,
 | 
			
		||||
                                           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 "
 | 
			
		||||
                              "<a href='{solution_url}'>problem {problem}</a>. "
 | 
			
		||||
                              "You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
 | 
			
		||||
            solution_url = opponent_passage.defended_solution.file.url
 | 
			
		||||
            passage_url = reverse_lazy("participation:passage_detail", args=(opponent_passage.pk,))
 | 
			
		||||
            opponent_content = format_lazy(opponent_text, opponent=opponent_passage.defender.team.trigram,
 | 
			
		||||
                                           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 "
 | 
			
		||||
                              "<a href='{solution_url}'>problem {problem}. "
 | 
			
		||||
                              "You can upload your synthesis sheet on <a href='{passage_url}'>this page</a>.</p>")
 | 
			
		||||
            solution_url = reporter_passage.defended_solution.file.url
 | 
			
		||||
            passage_url = reverse_lazy("participation:passage_detail", args=(reporter_passage.pk,))
 | 
			
		||||
            reporter_content = format_lazy(reporter_text, reporter=reporter_passage.defender.team.trigram,
 | 
			
		||||
                                           problem=reporter_passage.solution_number, passage_url=passage_url)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user