1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-05 02:06:52 +00: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
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

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'