Skip to content

Commit 84670c3

Browse files
committed
CWS: Fix "tokens_info is undefined" error in macro/submission.html
1 parent 821fed5 commit 84670c3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cms/server/contest/templates/macro/submission.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% macro rows(url, contest_url, translation, xsrf_form_html,
22
actual_phase, task, submissions,
33
can_use_tokens, can_play_token, can_play_token_now,
4+
tokens_info,
45
submissions_download_allowed, official) -%}
56
{#
67
Render a submission table with all (un)official submissions passed.
@@ -100,6 +101,7 @@
100101
can_use_tokens,
101102
can_play_token,
102103
can_play_token_now,
104+
tokens_info,
103105
submissions_download_allowed) }}
104106
{% endif %}
105107
{% endfor %}
@@ -111,6 +113,7 @@
111113
{% macro row(url, contest_url, translation, xsrf_form_html,
112114
actual_phase, s, opaque_id, show_date,
113115
can_use_tokens, can_play_token, can_play_token_now,
116+
tokens_info,
114117
submissions_download_allowed) -%}
115118
{#
116119
Render a row in a submission table.

cms/server/contest/templates/task_submissions.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ <h3>{% trans %}Unofficial submissions{% endtrans %}</h3>
375375
can_use_tokens,
376376
can_play_token,
377377
can_play_token_now,
378+
tokens_info,
378379
submissions_download_allowed,
379380
false) }}
380381
<h3>{% trans %}Official submissions{% endtrans %}</h3>
@@ -391,6 +392,7 @@ <h3>{% trans %}Official submissions{% endtrans %}</h3>
391392
can_use_tokens,
392393
can_play_token,
393394
can_play_token_now,
395+
tokens_info,
394396
submissions_download_allowed,
395397
true) }}
396398

0 commit comments

Comments
 (0)