Added the title_case filter and replaced the title filter with the title_case filter to display titles in American English.

This commit is contained in:
2020-08-03 22:31:13 +08:00
parent 3babe8bc1f
commit 66f57b7b0d
13 changed files with 77 additions and 63 deletions

View File

@ -76,7 +76,7 @@ First written: 2020/7/19
{# The table for large screens #}
<div class="d-none d-sm-block report-block report-block-lg">
<div class="row justify-content-center">
<h2>{{ title|force_escape }}</h2>
<h2>{{ title|title_case }}</h2>
</div>
<div class="row">
@ -93,7 +93,7 @@ First written: 2020/7/19
<tbody>
{% for item in item_list %}
<tr>
<td>{{ item.title|title }}</td>
<td>{{ item.title|title_case }}</td>
<td class="amount">{{ item.debit_amount|accounting_amount }}</td>
<td class="amount">{{ item.credit_amount|accounting_amount }}</td>
<td class="actions">
@ -130,7 +130,7 @@ First written: 2020/7/19
{% for item in item_list %}
<li class="list-group-item">
<a class="list-group-item-action d-flex justify-content-between align-items-center" href="{% url "accounting:ledger" item period %}">
{{ item.title|title }}
{{ item.title|title_case }}
<div>
{% if item.debit_amount is not None %}
<span class="badge badge-success badge-pill">