show results if admin

This commit is contained in:
Ross
2023-10-16 09:52:57 +01:00
parent 12a8afe771
commit c786019af1
5 changed files with 7 additions and 4 deletions
@@ -22,7 +22,7 @@
<span class="submitted-user-answer"> <span class="submitted-user-answer">
<pre>{{ans}}</pre> <pre>{{ans}}</pre>
</span> </span>
{% if exam.publish_results %} {% if exam.publish_results or view_all_results%}
<span class="answer-score">{{score}}</span> <span class="answer-score">{{score}}</span>
{% endif %} {% endif %}
</span> </span>
@@ -12,7 +12,7 @@
<span class="question-text">{{q|safe}}:</span> {% if exam.publish_results %}<span class="correct-answer">Correct answer: {{correct_answer|safe}}</span>{% endif %} <span class="question-text">{{q|safe}}:</span> {% if exam.publish_results %}<span class="correct-answer">Correct answer: {{correct_answer|safe}}</span>{% endif %}
<br /> <br />
<span class="submitted-user-answer">{{a}}</span> <span class="submitted-user-answer">{{a}}</span>
{% if exam.publish_results %} {% if exam.publish_results or view_all_results%}
<span class="answer-{{score}}"> <span class="answer-{{score}}">
(Score: {{score}}) (Score: {{score}})
</span> </span>
+1 -1
View File
@@ -712,7 +712,7 @@ input {
text-decoration: underline; text-decoration: underline;
} }
.date { .date,.small-gray {
font-size: smaller; font-size: smaller;
opacity: 50%; opacity: 50%;
} }
@@ -25,7 +25,7 @@
<span class="submitted-user-answer"> <span class="submitted-user-answer">
<pre>{{ans}}</pre> <pre>{{ans}}</pre>
</span> </span>
{% if exam.publish_results %} {% if exam.publish_results or view_all_results%}
<span class="answer-score">{{score}}</span> <span class="answer-score">{{score}}</span>
{% endif %} {% endif %}
</span> </span>
+3
View File
@@ -15,6 +15,9 @@
{% else %} {% else %}
Results are NOT published. Results are NOT published.
{% endif %} {% endif %}
<p class="small-gray">view_all_results == True </p>
</div> </div>
{% else %} {% else %}
{% if not exam.publish_results %} {% if not exam.publish_results %}