{% for item in jump_items %}
    <div class="dropdown-item-text {% if not item.has_answer %}bg-danger-subtle border border-danger-subtle rounded{% elif item.idx == current %}bg-primary-subtle rounded{% endif %} py-2 px-2 mb-1">
        <div class="d-flex justify-content-between align-items-start gap-2">
            <a class="text-decoration-none small fw-semibold"
               href="{{ item.case_url }}">
                Case {{ item.idx|add:1 }}
            </a>
            <div class="d-flex gap-1">
                {% if item.is_time_expired %}
                    <span class="badge bg-dark">Time expired</span>
                {% endif %}
                {% if item.has_self_review %}
                    <span class="badge bg-info-subtle text-info-emphasis">Self review</span>
                {% endif %}
            </div>
        </div>
    </div>
{% empty %}
    <div class="dropdown-item-text text-muted small px-2 py-2">No cases available.</div>
{% endfor %}
