Change date format in transaction table on month and year page
This commit is contained in:
parent
b3c9642adc
commit
cc551c536c
1 changed files with 9 additions and 1 deletions
|
@ -46,7 +46,15 @@
|
||||||
{% for invoice in trans.invoices %}<a href="{{ invoice.file.url }}">{{ "attachment"|remix }}</a>{% endfor %}
|
{% for invoice in trans.invoices %}<a href="{{ invoice.file.url }}">{{ "attachment"|remix }}</a>{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
<td class="date">
|
<td class="date">
|
||||||
<time datetime="{{ trans.date|date:"Y-m-d" }}">{{ trans.date|date:"Y-m-d" }}</time>
|
<time datetime="{{ trans.date|date:"Y-m-d" }}">
|
||||||
|
{% if month %}
|
||||||
|
{{ trans.date|date:"l d"|capfirst }}
|
||||||
|
{% elif year %}
|
||||||
|
{{ trans.date|date:"d F" }}
|
||||||
|
{% else %}
|
||||||
|
{{ trans.date|date:"Y-m-d" }}
|
||||||
|
{% endif %}
|
||||||
|
</time>
|
||||||
</td>
|
</td>
|
||||||
<th scope="row" class="l">
|
<th scope="row" class="l">
|
||||||
<a href="{{ trans.get_absolute_url }}">{{ trans.name }}</a>
|
<a href="{{ trans.get_absolute_url }}">{{ trans.name }}</a>
|
||||||
|
|
Loading…
Reference in a new issue