This commit is contained in:
Ross
2022-04-04 21:39:35 +01:00
parent 6a5b558fa7
commit 14421a8628
@@ -10,7 +10,15 @@
Answers
<ul>
{% for answer in answers %}
<li {% if not answer.score %}class="flagged"{% endif %}><a href="{% url 'atlas:collection_mark_question' collection.pk forloop.counter0 %}">{{answer.answer}}: {{answer.score}}</a></li>
<li {% if not answer.score %}class="flagged"{% endif %}><a href="{% url 'atlas:collection_mark_question' collection.pk forloop.counter0 %}">{{answer.answer}}
{% if not answer.score %}
<span class="badge rounded-pill bg-success">{{answer.score}</span>
{% else %}
<span class="badge rounded-pill bg-danger">{{answer.score}</span>
{% endif %}
}</a></li>
{% endfor %}
</ul>
</li>