1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 14:38:24 +02:00

Display the BBB link of a pool

This commit is contained in:
Yohann D'ANELLO
2021-01-21 22:32:43 +01:00
parent fd4280426b
commit 9e559db4b4
3 changed files with 113 additions and 102 deletions

View File

@ -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)

View File

@ -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">