Template source: browse/_auction_profile.html

{% extends 'browse/_auction_profile_root.html' %}
{% load i18n %}
{% load captureas %}
{% load facebook_feed_share_auction %}
{% load is_following %}
{% load flatpages %}

{% block auction-info-banner %}
{% captureas hero_content %}
<div class="container">
    <div class="row-fluid appendtop-70 auction-meta">
        {% if auction.picture %}
        <div class="span2">
            <img class="circle-icon" src="{{ auction.picture.logo_url }}" alt="{{ auction.name }}"/>
        </div>
        {% endif %}
        <div class="span8">
            <ul class="no-list charity-actions">
                {% if not auction.user == request.user %}
                <li class="text-left">
                    <a class="btn btn-outline btn-wide btn-150 btn-follow" data-object-id="{{ auction.id }}"
                       data-object-type="auction"
                       data-unfollow="{% trans 'Unfollow' %}" data-following="{% trans 'Following' %}"
                       data-follow="{% trans 'Follow' %}"
                       {% if request.user|is_following:auction %}
                       data-state='unfollow' title="{% trans 'Unfollow' %}"><i class="ss-check"></i> {% trans
                        'Following' %}
                        {% else %}
                        data-state='follow' title="{% trans 'Follow' %}"><i class="ss-adduser"></i> {% trans 'Follow' %}
                        {% endif %}
                    </a>
                </li>
                {% endif %}
                <li class="text-left">
                    <a class="btn btn-outline btn-wide appendtop-10 btn-150"
                    {% if auction.is_shareable %}
                        onclick="return openPopup(this, true);" href="{% facebook_feed_share_auction auction %}"
                    {% else %}
                    {% get_flatpages '/popover/sharing/' as sharing_popover %}
                       rel="popover"
                       data-title="<span><i class='ss-help'></i> {{ sharing_popover.0.title|escape }}</span><a href='javascript:;' onclick='$(&quot;[rel=popover]&quot;).popover(&quot;hide&quot;);' class='close'><i class='ss-delete ss-dark-grey'></i></a>"
                       data-content="{{ sharing_popover.0.content|escape }}"
                       data-html="true"
                       data-placement="bottom"
                    {% endif %}
                    >
                        <i class="ss-facebook ss-social-regular"></i>
                        {% trans 'Share' %}
                    </a>
                </li>
                {% if auction.live_auction and auction.live_auction.event_tickets_available %}
                <li class="text-left">
                    <a href="{% url 'auction_tickets' auction.id %}"
                       class="btn btn-outline btn-wide appendtop-10 btn-150">
                        <i class="ss-basket"></i>
                        {% trans 'Buy Event Tickets' %}
                    </a>
                </li>
                {% endif %}
                <li class="text-left">
                    <a href="{% url 'auction_public_profile' auction.user.urlpath %}"
                       class="btn btn-outline btn-wide appendtop-10 btn-150">
                        {% trans 'View Profile' %}
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>
{% endcaptureas %}
{% include '_category_header.html' %}
{% endblock %}