Applied the force_escape filter to the gettext shortcut _("...") in the templates, because it returns SafeString instead of str.
This commit is contained in:
@ -79,10 +79,10 @@ First written: 2020/7/19
|
||||
<table class="table table-borderless table-hover trial-balance-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{{ _("Account") }}</th>
|
||||
<th class="amount" scope="col">{{ _("Debit") }}</th>
|
||||
<th class="amount" scope="col">{{ _("Credit") }}</th>
|
||||
<th class="actions" scope="col">{{ _("View") }}</th>
|
||||
<th scope="col">{{ _("Account")|force_escape }}</th>
|
||||
<th class="amount" scope="col">{{ _("Debit")|force_escape }}</th>
|
||||
<th class="amount" scope="col">{{ _("Credit")|force_escape }}</th>
|
||||
<th class="actions" scope="col">{{ _("View")|force_escape }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -94,7 +94,7 @@ First written: 2020/7/19
|
||||
<td class="actions">
|
||||
<a href="{% url "accounting:ledger" item period %}" class="btn btn-info" role="button">
|
||||
<i class="fas fa-eye"></i>
|
||||
<span class="d-none d-lg-inline">{{ _("View") }}</span>
|
||||
<span class="d-none d-lg-inline">{{ _("View")|force_escape }}</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@ -102,7 +102,7 @@ First written: 2020/7/19
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>{{ _("Total") }}</td>
|
||||
<td>{{ _("Total")|force_escape }}</td>
|
||||
<td class="amount">{{ total_item.debit_amount|accounting_amount }}</td>
|
||||
<td class="amount">{{ total_item.credit_amount|accounting_amount }}</td>
|
||||
<td></td>
|
||||
@ -142,7 +142,7 @@ First written: 2020/7/19
|
||||
</li>
|
||||
{% endfor %}
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center total">
|
||||
{{ _("Total") }}
|
||||
{{ _("Total")|force_escape }}
|
||||
<div>
|
||||
<span class="badge badge-success badge-pill">
|
||||
{{ total_item.debit_amount|intcomma:False }}
|
||||
|
Reference in New Issue
Block a user