{% load discount_tags %}
{% load i18n %}

<div class="wrap-search-item">
    <div class="search-item discount-search-item">
        <h2><a href="{{ discount.get_absolute_url }}">{{ discount.discount_code }}</a></h2>
        <div class="item-content">
            <div class="search-text">
                <p>Value: {{ SITE_GLOBAL_CURRENCYSYMBOL }}{{ discount.value }}</p>
                <p>Uses: {{ discount.num_of_uses }}</p>
                <p>Cap: {{ discount.cap }}</p>
                <p>Status: {% discount_expiration discount %}</p>
            </div>
        </div>
    </div>
    {% include 'discounts/meta.html' %}
</div>
