.
This commit is contained in:
@@ -21,19 +21,19 @@
|
||||
Unmarked:
|
||||
<ul id="new-answer-list" class="answer-list">
|
||||
{% for answer in user_answers %}
|
||||
<li><pre><span class="answer not-marked" title="{{answer}}">{{ answer }}</span></pre></li>
|
||||
<li><pre><span class="answer not-marked" title="{{answer}}" data-answerurl="{% url 'anatomy:question_user_answers_by_compare' question.pk answer %}">{{ answer }}</span></pre></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Marked:
|
||||
<ul id="marked-answer-list" class="answer-list">
|
||||
{% for answer in correct_answers %}
|
||||
<li><pre><span class="answer correct" title="{{answer}}">{{ answer }}</span></pre></li>
|
||||
<li><pre><span class="answer correct" title="{{answer}}" data-answerurl="{% url 'anatomy:question_user_answers_by_compare' question.pk answer %}">{{ answer }}</span></pre></li>
|
||||
{% endfor %}
|
||||
{% for answer in half_mark_answers %}
|
||||
<li><pre><span class="answer half-correct" title="{{answer}}">{{ answer }}</span></pre></li>
|
||||
<li><pre><span class="answer half-correct" title="{{answer}}" data-answerurl="{% url 'anatomy:question_user_answers_by_compare' question.pk answer %}">{{ answer }}</span></pre></li>
|
||||
{% endfor %}
|
||||
{% for answer in incorrect_answers %}
|
||||
<li><pre><span class="answer incorrect" title="{{answer}}">{{ answer }}</span></pre></li>
|
||||
<li><pre><span class="answer incorrect" title="{{answer}}" data-answerurl="{% url 'anatomy:question_user_answers_by_compare' question.pk answer %}">{{ answer }}</span></pre></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="mark-buttons">
|
||||
@@ -78,6 +78,7 @@
|
||||
<ul class="popovermenu">
|
||||
<li><a href="https://www.google.com/search?q=${uri}" target="_blank">Google answer</a></li>
|
||||
<span class="copy-to-clipboard" data-text="${el.title}">Copy to clipboard</span>
|
||||
<li><a href="${el.dataset.answerurl}" target="_blank">view answers</a></li>
|
||||
</ul>
|
||||
</div>`)
|
||||
$(el).before(popover)
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
{% extends 'anatomy/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{question}}</h2>
|
||||
|
||||
{% if answer_compare %}
|
||||
Filtering by answer: {{answer_compare}} <a href="{% url 'anatomy:question_user_answers' question.pk %}">[view all]</a>
|
||||
{% endif %}
|
||||
|
||||
<ul>
|
||||
{% for answer in answers %}
|
||||
<li><a href="{% url 'anatomy:user_answer_view' pk=answer.pk %}">{{answer}} [score: {{answer.score}}]</a></li>
|
||||
|
||||
+1
-1
@@ -258,7 +258,7 @@ def mark(request, exam_pk, sk, unmarked_exam_answers_only=True, review=False):
|
||||
}
|
||||
|
||||
try:
|
||||
question = questions[sk]
|
||||
question: AnatomyQuestion = questions[sk]
|
||||
except IndexError:
|
||||
raise Http404("Exam question does not exist")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user