Template source: browse/auction_root.html

{# Template for a single auction #}
{% extends "base.html" %}
{% load i18n %}{% load add_query %}{% load staticfiles %}{% load get_setting %}{% load format_message %}{% load time_format %}

{% block meta_description %}{% get_setting "BRAND_NAME" as brand_name %}{% format_message brand_messages.SEO_DESCRIPTION_BROWSE microsite=microsite.title|default_if_none:brand_name %}{% endblock %}

{% block extrahead %}
<script type="text/javascript" src="{% static 'generated-js/tab_toggle.js' %}"></script>
<script type="text/javascript" src="{% static 'generated-js/cover_photo.js' %}"></script>
<script type="text/javascript" src="{% static 'generated-js/ajax_listing_style.js' %}"></script>
{% load microsite_absolute_uri %}
{% load static_absolute %}
<meta property="og:title" content="{% blocktrans with auctionname=auction.name %}{{ auctionname }}{% endblocktrans %}">
<meta property="og:description" content="{{ auction.description|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 auction.picture %}{{ auction.picture.image_url }}{% else %}{% static_absolute "images/global/logo200x200.png" %}{% endif %}">
{% endblock %}


{% block title %}{% blocktrans with auctionname=auction.name %}{{ auctionname }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}auction{% endblock %}

{% block cta %}
{% endblock %}

{% block context-bar-content %}
{% endblock %}

{% block categories %}
  {% include "browse/_auction_profile.html" %}
{% endblock %}

{% block notice_message_block %}
{% if auction.state == 'draft' %}
<section class="preview-confirm visible-desktop visible-tablet">
  <section class="preview-container one-column">
    <header class="banner">
      <hgroup>
        <h4>
        <strong>{% trans "Auction Draft:" %}</strong>
        {% format_localtime auction.starts_at as starts_at %}
        {% blocktrans %}If you do not manually publish this auction, it will automatically go live on {{ starts_at }}.{% endblocktrans %}
        </h4>
      </hgroup>
     </header>
  </section>
</section>
{% else %}
    {{ block.super }}
{% endif %}
{% endblock %}

{% block fullwidth %}
     <div class="tab-nav-custom">
      <div class="container">
        <ul class="no-margin no-list" id="auction-tabs">
          <li class="{% if tab == 'ads' %}active{% endif %} inline-block"> <a class="tab-link open-sans uppercase bold" href="#auction-tabs-ads" id="auction-tabs-ads-link">{% trans 'Items' %} {% if total_results %}<span class="label">{{total_results}}</span>{% endif %}</a></li>
          {% if auction.video_url %}
              <li class="{% if tab == 'video' %}active{% endif %} inline-block"> <a class="tab-link open-sans uppercase bold" href="#auction-tabs-video" id="auction-tabs-video-link">{% trans 'Video' %}</a></li>
          {% endif %}
        </ul>
      </div>
    </div>
{% endblock %}

{% block content %}
    <div class="tab-content">
        <div class="listing-results tab-pane fade {% if tab == 'ads' %}in active{% endif %}" id="auction-tabs-ads">
          {% include 'search/summary.html' %}
          {% block auction-content-listings %}{% endblock %}
        </div>
        <div class="tab-pane fade {% if tab == 'video' %}in active{% endif %}" id="auction-tabs-video">
          {% include 'auction/tabs/video.html' %}
        </div>
    </div>
{% endblock %}