1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 04:12:08 +02:00

Solutions

This commit is contained in:
Yohann D'ANELLO
2020-04-30 20:11:03 +02:00
parent eee7fc845c
commit c636f483bb
7 changed files with 162 additions and 6 deletions

View File

@ -38,3 +38,25 @@ class TeamTable(tables.Table):
attrs = {
'class': 'table table-condensed table-striped table-hover'
}
class SolutionTable(tables.Table):
file = tables.LinkColumn(
"document",
args=[A("file")],
attrs={
"a": {
"data-turbolinks": "false",
}
}
)
def render_file(self):
return _("Download")
class Meta:
model = Team
fields = ("team", "team.tournament", "problem", "uploaded_at", "file", )
attrs = {
'class': 'table table-condensed table-striped table-hover'
}