diff --git a/webapp/public/js/domjudge.js b/webapp/public/js/domjudge.js index e3b9250c3b..3af30149c0 100644 --- a/webapp/public/js/domjudge.js +++ b/webapp/public/js/domjudge.js @@ -617,7 +617,7 @@ function enableRefresh($url, $after, usingAjax) { } }; refreshHandler = setTimeout(refresh, $after * 1000); - refreshEnabled = true; + refreshEnabled = false; setCookie('domjudge_refresh', 1); if(window.location.href == localStorage.getItem('lastUrl')) { diff --git a/webapp/templates/base.html.twig b/webapp/templates/base.html.twig index 9b54ed453b..610d81d6f3 100644 --- a/webapp/templates/base.html.twig +++ b/webapp/templates/base.html.twig @@ -48,17 +48,6 @@ {% endif %} var markdownPreviewUrl = "{{ path('markdown_preview') }}"; $(function () { - /* toggle refresh if set */ - {% if refresh is defined and refresh %} - $('#refresh-navitem').on('click', function () { - toggleRefresh('{{ refresh.url | raw }}', {{ refresh.after }}, {{ refresh.ajax | default(0) }}); - }); - {% endif %} - /* Enable page refresh if set if wanted by the page, and wanted by the user */ - {% if refresh is defined and refresh and refresh_flag %} - enableRefresh('{{ refresh.url | raw }}', {{ refresh.after }}, {{ refresh.ajax | default(0) }}); - {% endif %} - initializeAjaxModals(); }); diff --git a/webapp/templates/team/partials/index_content.html.twig b/webapp/templates/team/partials/index_content.html.twig index 34c7ca453c..a7cb2c7262 100644 --- a/webapp/templates/team/partials/index_content.html.twig +++ b/webapp/templates/team/partials/index_content.html.twig @@ -8,18 +8,77 @@ {% else %} -
- {% set displayRank = not contest.freezeData.showFrozen %} - {% include 'partials/scoreboard_table.html.twig' with {displayRank: displayRank, jury: false, public: false} %} +
+
+
+
+ Submissions +
+
+ {% include 'team/partials/submission_list.html.twig' %} +
+
+
+
+ Clarifications +
+
+ {% if clarifications is empty %} +

No clarifications.

+ {% else %} + {% include 'team/partials/clarification_list.html.twig' with {clarifications: clarifications} %} + {% endif %} +
+
+
+
+ Clarification Requests +
+
+ {% if clarificationRequests is empty %} +

No clarification request.

+ {% else %} + {% include 'team/partials/clarification_list.html.twig' with {clarifications: clarificationRequests} %} + {% endif %} +
+ +
- -
- {% include 'partials/messages.html.twig' %} - {% if not contest.allowSubmit %} - {% include 'partials/alert.html.twig' with {'type': 'danger', 'message': 'Submissions (temporarily) disabled.'} %} - {% endif %} +
+
+
+ Clarifications +
+
+ {% if clarifications is empty %} +

No clarifications.

+ {% else %} + {% include 'team/partials/clarification_list_suggested.html.twig' with {clarifications: clarifications} %} + {% endif %} +
+
+
+
+ Clarification Requests + + Request clarification + +
+
+ {% if clarificationRequests is empty %} +

No clarification request.

+ {% else %} + {% include 'team/partials/clarification_list_suggested.html.twig' with {clarifications: clarificationRequests} %} + {% endif %} +
+
- +
+

Submissions