<div class="col-md-3 browse_category_laft_bar">
{% if categories %}
{% for category in categories %}
<div class="col-md-12 nopadding">
{% if forloop.first %}
<a data-cat-id="{{ category.pk }}" class="show-user-by-category active" href="/filter-user-by-expertise/{{ category.pk }}/"><span>{{ category.name }} <i class="fa fa-caret-right"></i></span></a>
{% else %}
<a data-cat-id="{{ category.pk }}" class="show-user-by-category" href="/filter-user-by-expertise/{{ category.pk }}/"><span>{{ category.name }} <i class="fa fa-caret-right"></i></span></a>
{% endif %}
</div>
{% endfor %}
{% endif %}
</div>