<li class="{% if job.slug in request.path %}active{% endif %}">
    <a href="{% url 'jobs' job.slug %}">{{ job.name }}</a>
</li>

{% if job.slug == active_job_group.slug %}
    {% regroup job_members by job.name as all_jobmem_list %}

    <ul class="scrollSpyNav">
        {% for jobmem in all_jobmem_list %}
            <li class="{% if jobmem.grouper %}active{% endif %}">
                <a href="#{{ jobmem.list.0.job.slug }}">{{ jobmem.grouper }}</a>
            </li>
        {% endfor %}
    </ul>
{% endif %}
