{% extends "site_base.html" %}
{% comment %}
This template is copied from the base templates to provide the friends
photos link which is specific to social_project.

NOTE: we don't extend that since it would extend itself and Django will
crash.
{% endcomment %}

{% load i18n %}
{% load group_tags %}

{% block body_class %}photos{% endblock %}

{% block subnav %}
    {% if user.is_authenticated %}
        <ul>
            <li><a href="{% groupurl photos group %} ">{% trans "Latest Photos" %}</a></li>
            <li><a href="{% groupurl photos_yours group %}">{% trans "Your Photos" %}</a></li>
            <li><a href="{% url friends_photos %}">{% trans "Friends' Photos" %}</a></li>
            <li><a href="{% groupurl photo_upload group %}">{% trans "Upload a Photo" %}</a></li>
        </ul>
    {% else %}
        &nbsp;
    {% endif %}
{% endblock %}
{% extends "site_base.html" %}
{% comment %}
This template is copied from the base templates to provide the friends
photos link which is specific to social_project.

NOTE: we don't extend that since it would extend itself and Django will
crash.
{% endcomment %}

{% load i18n %}
{% load group_tags %}

{% block body_class %}photos{% endblock %}

{% block subnav %}
    {% if user.is_authenticated %}
        <ul>
            <li><a href="{% groupurl photos group %} ">{% trans "Latest Photos" %}</a></li>
            <li><a href="{% groupurl photo_most_viewed group %} ">{% trans "Most Viewed" %}</a></li>
            <li><a href="{% groupurl photos_yours group %}">{% trans "Your Photos" %}</a></li>
            <li><a href="{% url friends_photos %}">{% trans "Friends' Photos" %}</a></li>
            <li><a href="{% groupurl photo_upload group %}">{% trans "Upload a Photo" %}</a></li>
        </ul>
    {% else %}
        &nbsp;
    {% endif %}
{% endblock %}

Add "Most Viewed Photos" subtab
Add "Most Viewed Photos" subtab
