{% load url from future %}

<ul class="tab-links">

    <li><a href="{% url "place" slug=object.slug %}">Overview</a></li>

    {% if object.has_scorecards %}
    <li><a href="{% url "place_scorecard" slug=object.slug %}">Scorecard</a></li>
    {% endif %}

    {# <li><a href="{% url "place_people" slug=object.slug %}">People</a></li> #}
    <li><a href="{% url "place_places" slug=object.slug %}">Constituency Offices</a></li>

    {% if settings.ENABLED_FEATURES.place_data and object.placedata %}
    <li><a href="{% url "place_data" slug=object.slug %}">Data</a></li>
    {% endif %}

    {% if settings.ENABLED_FEATURES.projects and object.is_constituency %}
    <li><a href="{% url "place_projects" slug=object.slug %}">CDF Projects ({{ object.project_set.count }})</a></li>
    {% endif %}

</ul>

{% load url from future %}
{% load active_class %}

<ul class="tab-links">

    <li><a class="{% active_class request.path "place" slug=object.slug %}" href="{% url "place" slug=object.slug %}">Overview</a></li>

    {% if object.has_scorecards %}
    <li><a class="{% active_class request.path "place_scorecard" slug=object.slug %}" href="{% url "place_scorecard" slug=object.slug %}">Scorecard</a></li>
    {% endif %}

    {# <li><a href="{% url "place_people" slug=object.slug %}">People</a></li> #}
    <li><a class="{% active_class request.path "place_places" slug=object.slug %}" href="{% url "place_places" slug=object.slug %}">Constituency Offices</a></li>

    {% if settings.ENABLED_FEATURES.place_data and object.placedata %}
    <li><a class="{% active_class request.path "place_data" slug=object.slug %}" href="{% url "place_data" slug=object.slug %}">Data</a></li>
    {% endif %}

    {% if settings.ENABLED_FEATURES.projects and object.is_constituency %}
    <li><a class="{% active_class request.path "place_projects" slug=object.slug %}" href="{% url "place_projects" slug=object.slug %}">CDF Projects ({{ object.project_set.count }})</a></li>
    {% endif %}

</ul>

Add active class to current nav item on place pages
Add active class to current nav item on place pages
