From e584c75991bc4ea6cc964ae317c07e45bb227a2a Mon Sep 17 00:00:00 2001 From: Zhao Date: Sat, 8 Oct 2022 17:43:55 +0700 Subject: [PATCH] Add download ranking table as csv file --- templates/contest/ranking-table.html | 2 +- templates/contest/ranking.html | 68 ++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/templates/contest/ranking-table.html b/templates/contest/ranking-table.html index ffd0ffa..5779fe8 100644 --- a/templates/contest/ranking-table.html +++ b/templates/contest/ranking-table.html @@ -4,7 +4,7 @@ {% block after_rank_head %} {% if has_rating %} - {{ _('Rating') }} + {{ _('Rating') }} {% endif %} {% endblock %} diff --git a/templates/contest/ranking.html b/templates/contest/ranking.html index 0ee131b..5818c74 100644 --- a/templates/contest/ranking.html +++ b/templates/contest/ranking.html @@ -61,6 +61,73 @@ }); {% endif %} + {% if tab == 'ranking' %} + + {% endif %} {% include "contest/media-js.html" %} {% endblock %} @@ -86,6 +153,7 @@ + {{ _('Download as CSV') }} {% include "contest/ranking-table.html" %} {% endblock %}