1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-02 07:18:29 +02:00

Use warning background for teams that didn't sent their video

This commit is contained in:
Yohann D'ANELLO
2021-01-01 15:54:50 +01:00
parent bcdbc445c6
commit d55671efd1

View File

@ -42,6 +42,9 @@ class TeamTable(tables.Table):
attrs = {
'class': 'table table condensed table-striped',
}
row_attrs = {
'class': lambda record: '' if record.participation.solution.link else 'bg-warning',
}
model = Team
fields = ('name', 'trigram', 'problem',)
template_name = 'django_tables2/bootstrap4.html'