Fix old order detail page

This commit is contained in:
PCoder 2019-11-15 22:04:37 +05:30
parent 530e47586e
commit 7dd57fb116
1 changed files with 7 additions and 1 deletions

View File

@ -186,7 +186,13 @@
{% if order.subscription_id %}
<p>
<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>
{% endif %}
</div>