Fix old order detail page

This commit is contained in:
PCoder 2019-11-15 22:04:37 +05:30
parent 530e47586e
commit 7dd57fb116

View file

@ -186,7 +186,13 @@
{% if order.subscription_id %} {% if order.subscription_id %}
<p> <p>
<span>{% trans "Recurring" %}: </span> <span>{% trans "Recurring" %}: </span>
<strong class="pull-right">{{order.created_at|date:'d'|ordinal}} {% trans "of every month" %}</strong> {% if order.generic_product.product_subscription_interval == 'year' %}
<strong class="pull-right">{{order.created_at|date:'d'|ordinal}} {% trans "of" %} {{order.created_at|date:'b'|title}}
{% trans "each year" %}</strong>
{% else %}
<strong class="pull-right">{{order.created_at|date:'d'|ordinal}}
{% trans "of every month" %}</strong>
{% endif %}
</p> </p>
{% endif %} {% endif %}
</div> </div>