From fbc57f8b33f97a6e5c182e195ed5df3daa5c4d07 Mon Sep 17 00:00:00 2001 From: Zhao-Linux Date: Sat, 8 Oct 2022 17:55:34 +0700 Subject: [PATCH] Add download ranking csv file --- templates/contest/ranking-table.html | 2 +- templates/contest/ranking.html | 70 +++++++++++++++++++++++++++- 2 files changed, 70 insertions(+), 2 deletions(-) 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..087a905 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 %} +{% endblock %} \ No newline at end of file