Skip to content

Commit 96143b3

Browse files
Use correct feedback level when showing evaluations "as seen by user" in AWS
We use instead "LEVEL_FULL" for the submission row as there it is only used as a shortcut to show everything, not to represent what the user sees.
1 parent 992291e commit 96143b3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cms/server/admin/templates/fragments/submission_row.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h3>Testcases</h3>
7272
Scored ({{ sr.score }} / {{ max_score }})
7373
<div id="evaluation_{{ s.id }}" class="score_details" style="display: none;">
7474
{% if score_type is defined %}
75-
{{ score_type.get_html_details(sr.score_details)|safe }}
75+
{{ score_type.get_html_details(sr.score_details, FEEDBACK_LEVEL_FULL)|safe }}
7676
{% else %}
7777
[Cannot get score type - see logs]
7878
{% endif %}

cms/server/admin/templates/submission.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ <h2 id="title_evaluation_user" class="toggling_on">Evaluation (as seen by the us
185185

186186
<div class="score_details" id="evaluation_{{ s.id }}">
187187
{% if s.tokened() %}
188-
{{ st.get_html_details(sr.score_details)|safe }}
188+
{{ st.get_html_details(sr.score_details, s.task.feedback_level)|safe }}
189189
{% else %}
190-
{{ st.get_html_details(sr.public_score_details)|safe }}
190+
{{ st.get_html_details(sr.public_score_details, s.task.feedback_level)|safe }}
191191
{% endif %}
192192
</div>
193193
</div>

0 commit comments

Comments
 (0)