Template source: profile/publicprofile_root.html

{% extends "base.html" %}
{% load staticfiles %}
{% load i18n %}
{% load dashboard %}
{% load get_setting %}

{% block extrahead %}
    <script type="text/javascript" src="{% static 'generated-js/tab_toggle.js' %}"></script>
    <script type="text/javascript" src="{% static 'generated-js/profile.js' %}"></script>

    {% load microsite_absolute_uri %}
    {% load static_absolute %}
    <meta property="og:title" content="{% blocktrans with username=viewed_user.username %}Profile {{ username }}{% endblocktrans %}">
    <meta property="og:description" content="{{ profile.bio|truncatechars:420 }}">
    <meta property="og:type" content="product">
    <meta property="og:site_name" content="{{ microsite.title }}">
    <meta property="og:url" content="{{ request.build_absolute_uri }}">
    <meta property="og:image" content="{% if profile.picture %}{{ profile.picture.large_url }}{% else %}{% static_absolute 'images/global/logo200x200.png' %}{% endif %}">
{% endblock %}

{% block meta_description %}
    {% get_setting "BRAND_NAME" as brand_name %}
    {% blocktrans with username=viewed_user.username|default_if_none:"" bio=profile.bio|default_if_none:"" microsite=microsite.title|default_if_none:brand_name %}The latest from {{ username }} on {{ microsite }}. {{ bio }}{% endblocktrans %}
{% endblock %}

{% block title %}{{ viewed_user.username }}{% endblock %}
{% block bodyclass %}public-profile{% endblock %}

{% block cta %}
{% endblock %}

    {% block context-bar-content %}
{% endblock %}
{% block fullwidth %}
  {% include "profile/_public_top_profile.html" %}
    <div class="tab-nav-custom">
      <div class="container">
        <ul class="no-margin no-list" id="profile-tabs">
          {% block tab-nav %}
            {% block active_tab %}<li class="{% if tab == 'active' %}active{% endif %} inline-block"> <a class="tab-link pseudo-link open-sans uppercase bold" id="profile-tabs-active-link" href="#profile-tabs-active">{% trans 'Active Ads' %} <span class="label">{{ active_total_count }}</span></a></li>{% endblock %}
            {% block favourites_tab %}<li class="{% if tab == 'faves' %}active{% endif %} inline-block"> <a class="tab-link pseudo-link open-sans uppercase bold" id="profile-tabs-faves-link" href="#profile-tabs-faves">{{ brand_messages.FAVOURITE_PROFILE_TAB_TITLE }} <span class="label">{{ faves_total_count }}</span></a></li>{% endblock %}
            {% block following_tab %}<li class="{% if tab == 'following' %}active{% endif %} inline-block"> <a class="tab-link pseudo-link open-sans uppercase bold" id="profile-tabs-following-link" href="#profile-tabs-following">{% trans 'Following' %} <span class="label">{{ following_total_count }}</span></a></li>{% endblock %}
            {% block followers_tab %}<li class="{% if tab == 'followers' %}active{% endif %} inline-block"> <a class="tab-link pseudo-link open-sans uppercase bold" id="profile-tabs-followers-link" href="#profile-tabs-followers">{% trans 'Followers' %} <span class="label">{{ followers_total_count }}</span></a></li>{% endblock %}
            {% block activity_tab %}<li class="{% if tab == 'activity' %}active{% endif %} inline-block"> <a class="tab-link pseudo-link open-sans uppercase bold" id="profile-tabs-activity-link" href="#profile-tabs-activity">{% trans 'Activity Stream' %} <span class="label">{{ activity_total_count }}</span></a></li>{% endblock %}
          {% endblock %}
        </ul>
      </div>
    </div>
{% endblock %}

{% block content %}
<div class="tab-content">
    {% block tab-content %}
        {% block active_content %}
        <div class="tab-pane fade {% if tab == 'active' %}in active{% endif %}" id="profile-tabs-active">
            {% include 'profile/tabs/active_listings_wrapper.html' %}
        </div>
        {% endblock %}

        {% block favourites_content %}
        <div class="tab-pane fade {% if tab == 'faves' %}in active{% endif %}" id="profile-tabs-faves">
            {% include 'profile/tabs/faved_listings_wrapper.html' %}
        </div>
        {% endblock %}

        {% block following_content %}
        <div class="tab-pane fade {% if tab == 'following' %}in active{% endif %}" id="profile-tabs-following">
            {% include 'profile/tabs/_following.html' %}
        </div>
        {% endblock %}

        {% block followers_content %}
        <div class="tab-pane fade {% if tab == 'followers' %}in active{% endif %}" id="profile-tabs-followers">
            {% include 'profile/tabs/_followers.html' %}
        </div>
        {% endblock %}

        {% block activity_content %}
        <div class="tab-pane fade {% if tab == 'activity' %}in active{% endif %}" id="profile-tabs-activity">
        {% with activities=activity.activities page=activity.page %}
            {% include "profile/tabs/activity.html" %}
        {% endwith %}
        </div>
        {% endblock %}
    {% endblock %}

</div>
{% endblock %}