Template source: listing/status_messaging.html

{% load i18n %}
{% load currency %}

{% load user_in_group %}
{% if listing.is_expired %}
  {% block expired_status_message %}
  <section class="alert alert-warning text-center">
      <h4 class="open-sans light no-uppercase no-margin"><i class="ss-flag ss-dark-grey"></i> {% trans 'This item is expired' %}</h4>
      {% if user.is_authenticated and listing.user == user %}
        <form action="{% url 'list.views.renew.renew_listing' listing.id %}" method="post">{% csrf_token %}
                <button class="btn btn-green">{% trans "Renew" %}</button>
        </form>
      {% endif %}
  </section>
  {% endblock %}
{% elif listing.listing_status == 'pending' %}
  {% block pending_status_message %}
    <section class="alert alert-warning text-center">
      <h4 class="open-sans light no-uppercase no-margin">
        <i class="ss-flag ss-dark-grey"></i>
        {% trans "This item is pending, and not yet active" %}
      </h4>
    </section>
  {% endblock %}
{% elif listing.listing_status == 'sold' %}
	{% block sold_status_message %}
    <section class="alert alert-warning text-center">
        <h4 class="open-sans light no-uppercase no-margin"><i class="ss-flag ss-dark-grey"></i>  {% trans "This item was sold and is not active" %}</h4>
        {% if user.is_authenticated and listing.user == user %}
            {% if listing.child_id %}
                <p class="open-sans light no-uppercase no-margin">{% trans 'This item has already been renewed. View it:' %} <a href="{% url 'browse.views.listing.show.by_id' listing.child_id %}">{% trans 'here' %}</a></p>
            {% else %}
              <form action="{% url 'list.views.renew.renew_listing' listing.id %}" method="post">{% csrf_token %}
                <button class="btn btn-green">{% trans "Renew" %}</button>
              </form>
            {% endif %}
        {% endif %}
    </section>
    {% endblock %}
{% elif listing.listing_status == 'paused' %}
	{% block paused_status_message %}
    <section class="alert alert-warning text-center">
        <h4 class="open-sans light no-uppercase no-margin"><i class="ss-flag ss-dark-grey"></i> {% trans "This item is currently paused and is not active" %}</h4>
    </section>
	{% endblock %}
{% elif listing.listing_status == 'removed' %}
	{% block removed_status_message %}
  <section class="alert alert-warning text-center">
      <h4 class="open-sans light no-uppercase no-margin"><i class="ss-flag ss-dark-grey"></i> {% trans "This item has been removed." %}</h4>
  </section>
	{% endblock %}
{% elif listing.listing_status == 'active' %}
	{% block active_status_message %}
	{% endblock %}
{% endif %}