Template source: listing/_auction_details_right.html

{% extends 'listing/_bidding_details_right.html' %}
{% load i18n %}
{% load next_item %}
{% load captureas %}

{% block listing-details %}
{{ block.super }}
{% if listing.preview %}
  {% if auction %}
  {% if auction.picture %}
  <a href="{% url 'auction_details' auction.id %}">
    <img class="circle-icon medium" src="{{ auction.picture.logo_url }}">
  </a>
  {% endif %}
  <h4 class="ellipsis no-margin base bold lato appendtop-15 appendbottom-10 no-uppercase"><a href="{% url 'auction_details' auction.id %}">{{ auction.name }}</a></h4>
  <hr>
  {% endif %}
{% else %}
  {% with auction=listing.auctionlisting.auction %}
  {% if auction.picture %}
  <a href="{% url 'auction_details' auction.id %}">
    <img class="circle-icon medium" src="{{ auction.picture.logo_url }}">
  </a>
  {% endif %}
  <h4 class="ellipsis no-margin base bold lato appendtop-15 appendbottom-10 no-uppercase"><a href="{% url 'auction_details' auction.id %}">{{ auction.name }}</a></h4>
  <hr>
  {% endwith %}
{% endif %}


{% if donated_by_name or donated_by_url or listing_donor_gallery %}
<section class="sponsor-details">
  <h3 class="appendbottom-0">{% trans 'Donated By' %}</h3>
  {% if donated_by_name %}
  <h4 class="base appendbottom-0 appendtop-0 ellipsis-nowrap">{{ donated_by_name }}</h4>
  {% endif %}
  {% if donated_by_url %}
  <h4 class="small bold appendtop-0 appendbottom-15 ellipsis"><a href="{{ donated_by_url }}" target="_blank" rel="nofollow">{{ donated_by_url }}</a></h4>
  {% endif %}

  {% if listing_donor_gallery %}
  <div class="sponsor-images text-center appendpaddingright-10">
  {% for logo in listing_donor_gallery %}
      {% if logo.url_link %}
        <a href="{% if 'http' in  logo.url_link %}{{ logo.url_link }}{% else %}http://{{ logo.url_link }}{% endif %}" target="_blank" ><img src="{{ logo.image_url }}" alt="{{ logo.title }}" class="img-thumbnail appendbottom-15"></a>
      {% else %}
        <a href="#"><img src="{{ logo.image_url }}" alt="{{ logo.title }}" class="img-thumbnail appendbottom-15"></a>
      {% endif %}
    <h4 class="small bold appendtop-0 appendbottom-15 ellipsis">
        {% if logo.url_link %}
        <a href="{% if 'http' in logo.url_link %}{{ logo.url_link }}{% else %}http://{{ logo.url_link }}{% endif %}" target="_blank" >
           {{ logo.title }}<br>{{ logo.url_link }}
        </a>
        {% else %}
            <a href="#" >
                {{ logo.title }}
            </a>
        {% endif %}
    </h4>
  {% endfor %}
  </div>
  {% endif %}
  <hr>
</section>
{% endif %}

{% endblock %}

{% block listing-action-buttons %}
  <a href="{% if not listing.preview %}{% url 'auction_details' auction.id %}{% else %}#{% endif %}" class="btn btn-green btn-wide-80">{% trans "View Auction" %}</a>
  {% next_item listing as next_id %}
  <a href="{% url 'browse.views.listing.show.by_id' next_id %}" class="btn btn-green btn-wide-80">{% trans "View Next Item" %}</a>
  {{ block.super }}
{% endblock %}