{% load i18n teams_tags %}

{% with current_project=project %}
    <ul>
        <li {% if not current_project %}class="current"{% endif %}>
            <a href="{{ team.get_absolute_url }}">All videos</a>
        </li>

        {% team_projects team as projects %}

        {% for project in projects %}
            <li {% if current_project == project %}class="current"{% endif %}>
                <a href="{% url teams:project_video_list slug=team.slug,project_slug=project.slug %}">{{ project }}</a>
            </li>
        {% endfor %}
    </ul>
{% endwith %}

{% load i18n teams_tags %}

{% with current_project=project %}
    <ul>
        <li {% if not current_project %}class="current"{% endif %}>
            <a href="{{ team.get_absolute_url }}">All videos <span>{{ team.teamvideo_set.count }}</span></a>
        </li>

        {% team_projects team as projects %}

        {% for project in projects %}
            <li {% if current_project == project %}class="current"{% endif %}>
                <a href="{% url teams:project_video_list slug=team.slug,project_slug=project.slug %}">{{ project }} <span>{{ project.teamvideo_set.count }}</span></a>
            </li>
        {% endfor %}
    </ul>
{% endwith %}

Add video counts to projects on the team video list page.
Add video counts to projects on the team video list page.

For https://unisubs.sifterapp.com/projects/12298/issues/485829/comments

We might want to put these in Solr if performance is an issue.
