thumbnail and overview

This commit is contained in:
Ross
2025-04-14 10:39:08 +01:00
parent edf4a992de
commit eea61fc99c
7 changed files with 52 additions and 10 deletions
+7 -1
View File
@@ -15,7 +15,13 @@
<li data-question_pk={{question.pk}}>
<span class="flex-col">
<a href="{% url 'anatomy:exam_question_detail' pk=exam.pk sk=forloop.counter0 %}">
<img src="{{ question.image|thumbnail_url:'exam-list' }}" alt="thumbail" />
{% if question.image %}
<img src="{{ question.image|thumbnail_url:'exam-list' }}" alt="thumbail" />
{% else %}
No image added.
{% endif %}
</a>
</span>
<span class="flex-col-4">