show results if admin
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<span class="submitted-user-answer">
|
||||
<pre>{{ans}}</pre>
|
||||
</span>
|
||||
{% if exam.publish_results %}
|
||||
{% if exam.publish_results or view_all_results%}
|
||||
<span class="answer-score">{{score}}</span>
|
||||
{% endif %}
|
||||
</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 %}
|
||||
<br />
|
||||
<span class="submitted-user-answer">{{a}}</span>
|
||||
{% if exam.publish_results %}
|
||||
{% if exam.publish_results or view_all_results%}
|
||||
<span class="answer-{{score}}">
|
||||
(Score: {{score}})
|
||||
</span>
|
||||
|
||||
@@ -712,7 +712,7 @@ input {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.date {
|
||||
.date,.small-gray {
|
||||
font-size: smaller;
|
||||
opacity: 50%;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<span class="submitted-user-answer">
|
||||
<pre>{{ans}}</pre>
|
||||
</span>
|
||||
{% if exam.publish_results %}
|
||||
{% if exam.publish_results or view_all_results%}
|
||||
<span class="answer-score">{{score}}</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
{% else %}
|
||||
Results are NOT published.
|
||||
{% endif %}
|
||||
|
||||
<p class="small-gray">view_all_results == True </p>
|
||||
|
||||
</div>
|
||||
{% else %}
|
||||
{% if not exam.publish_results %}
|
||||
|
||||
Reference in New Issue
Block a user