mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 16:42:28 +01:00 
			
		
		
		
	Display the BBB link of a pool
This commit is contained in:
		@@ -353,6 +353,10 @@ class Pool(models.Model):
 | 
			
		||||
        validators=[RegexValidator("[a-z]{3}-[a-z]{3}-[a-z]{3}")],
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def bbb_url(self):
 | 
			
		||||
        return f"https://visio.animath.live/b/{self.bbb_code}"
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def solutions(self):
 | 
			
		||||
        return Solution.objects.filter(participation__in=self.participations, final_solution=self.tournament.final)
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,9 @@
 | 
			
		||||
                        <a href="{{ passage.defended_solution.file.url }}" data-turbolinks="false">{{ passage.defended_solution }}{% if not forloop.last %}, {% endif %}</a>
 | 
			
		||||
                    {% endfor %}
 | 
			
		||||
                </dd>
 | 
			
		||||
 | 
			
		||||
                <dt class="col-sm-3">{% trans "BigBlueButton link:" %}</dt>
 | 
			
		||||
                <dd class="col-sm-9"><a href="{{ pool.bbb_url }}">{{ pool.bbb_url }}</a></dd>
 | 
			
		||||
            </dl>
 | 
			
		||||
 | 
			
		||||
            <div class="card bg-light shadow">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user