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:
parent
bcdbc445c6
commit
d55671efd1
@ -42,6 +42,9 @@ class TeamTable(tables.Table):
|
|||||||
attrs = {
|
attrs = {
|
||||||
'class': 'table table condensed table-striped',
|
'class': 'table table condensed table-striped',
|
||||||
}
|
}
|
||||||
|
row_attrs = {
|
||||||
|
'class': lambda record: '' if record.participation.solution.link else 'bg-warning',
|
||||||
|
}
|
||||||
model = Team
|
model = Team
|
||||||
fields = ('name', 'trigram', 'problem',)
|
fields = ('name', 'trigram', 'problem',)
|
||||||
template_name = 'django_tables2/bootstrap4.html'
|
template_name = 'django_tables2/bootstrap4.html'
|
||||||
|
Loading…
Reference in New Issue
Block a user