Revised the currency in the titles and options of the ledger, income and expenses, and trial balance.

This commit is contained in:
依瑪貓 2023-03-06 00:24:20 +08:00
parent cca43c68a6
commit 88147bea66
3 changed files with 10 additions and 10 deletions

View File

@ -27,7 +27,7 @@ First written: 2023/3/5
<script src="{{ url_for("accounting.static", filename="js/table-row-link.js") }}"></script> <script src="{{ url_for("accounting.static", filename="js/table-row-link.js") }}"></script>
{% endblock %} {% endblock %}
{% block header %}{% block title %}{{ _("Income and Expenses of %(account)s in %(currency)s %(period)s", currency=report.currency, account=report.account|title, period=report.period.desc|title) }}{% endblock %}{% endblock %} {% block header %}{% block title %}{{ _("Income and Expenses of %(account)s in %(currency)s %(period)s", currency=report.currency.name|title, account=report.account|title, period=report.period.desc|title) }}{% endblock %}{% endblock %}
{% block content %} {% block content %}
@ -69,7 +69,7 @@ First written: 2023/3/5
{% for currency in report.currency_options %} {% for currency in report.currency_options %}
<li> <li>
<a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}"> <a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}">
{{ currency.title|title }} {{ currency.title }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
@ -116,7 +116,7 @@ First written: 2023/3/5
{% for currency in report.currency_options %} {% for currency in report.currency_options %}
<li> <li>
<a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}"> <a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}">
{{ currency.title|title }} {{ currency.title }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}

View File

@ -27,7 +27,7 @@ First written: 2023/3/5
<script src="{{ url_for("accounting.static", filename="js/table-row-link.js") }}"></script> <script src="{{ url_for("accounting.static", filename="js/table-row-link.js") }}"></script>
{% endblock %} {% endblock %}
{% block header %}{% block title %}{{ _("Ledger of %(account)s in %(currency)s %(period)s", currency=report.currency, account=report.account|title, period=report.period.desc|title) }}{% endblock %}{% endblock %} {% block header %}{% block title %}{{ _("Ledger of %(account)s in %(currency)s %(period)s", currency=report.currency.name|title, account=report.account|title, period=report.period.desc|title) }}{% endblock %}{% endblock %}
{% block content %} {% block content %}
@ -69,7 +69,7 @@ First written: 2023/3/5
{% for currency in report.currency_options %} {% for currency in report.currency_options %}
<li> <li>
<a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}"> <a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}">
{{ currency.title|title }} {{ currency.title }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
@ -116,7 +116,7 @@ First written: 2023/3/5
{% for currency in report.currency_options %} {% for currency in report.currency_options %}
<li> <li>
<a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}"> <a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}">
{{ currency.title|title }} {{ currency.title }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}

View File

@ -26,7 +26,7 @@ First written: 2023/3/5
<script src="{{ url_for("accounting.static", filename="js/period-chooser.js") }}"></script> <script src="{{ url_for("accounting.static", filename="js/period-chooser.js") }}"></script>
{% endblock %} {% endblock %}
{% block header %}{% block title %}{{ _("Trial Balance of %(currency)s %(period)s", currency=report.currency, period=report.period.desc|title) }}{% endblock %}{% endblock %} {% block header %}{% block title %}{{ _("Trial Balance of %(currency)s %(period)s", currency=report.currency.name|title, period=report.period.desc|title) }}{% endblock %}{% endblock %}
{% block content %} {% block content %}
@ -68,7 +68,7 @@ First written: 2023/3/5
{% for currency in report.currency_options %} {% for currency in report.currency_options %}
<li> <li>
<a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}"> <a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}">
{{ currency.title|title }} {{ currency.title }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
@ -100,7 +100,7 @@ First written: 2023/3/5
{% for currency in report.currency_options %} {% for currency in report.currency_options %}
<li> <li>
<a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}"> <a class="dropdown-item {% if currency.is_active %} active {% endif %}" href="{{ currency.url }}">
{{ currency.title|title }} {{ currency.title }}
</a> </a>
</li> </li>
{% endfor %} {% endfor %}
@ -119,7 +119,7 @@ First written: 2023/3/5
{% if list %} {% if list %}
<div class="accounting-report-card"> <div class="accounting-report-card">
<div class="d-none d-sm-flex justify-content-center mb-3"> <div class="d-none d-sm-flex justify-content-center mb-3">
<h2 class="text-center">{{ _("Trial Balance of %(currency)s %(period)s", currency=report.currency, period=report.period.desc|title) }}</h2> <h2 class="text-center">{{ _("Trial Balance of %(currency)s %(period)s", currency=report.currency.name|title, period=report.period.desc|title) }}</h2>
</div> </div>
<div class="list-group accounting-list-group-stripped accounting-list-group-hover"> <div class="list-group accounting-list-group-stripped accounting-list-group-hover">