From a089e2c23571a534aa8181c29dbbeec5648b5b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 23 Jul 2020 09:37:29 +0800 Subject: [PATCH] Renamed the template variable current_account to account in the accounting application, for simplicity. --- .../templates/accounting/cash-summary.html | 20 +++++++++---------- accounting/templates/accounting/cash.html | 16 +++++++-------- .../templates/accounting/ledger-summary.html | 18 ++++++++--------- accounting/templates/accounting/ledger.html | 10 +++++----- accounting/views/reports.py | 8 ++++---- 5 files changed, 36 insertions(+), 36 deletions(-) diff --git a/accounting/templates/accounting/cash-summary.html b/accounting/templates/accounting/cash-summary.html index b925f8b..65245c4 100644 --- a/accounting/templates/accounting/cash-summary.html +++ b/accounting/templates/accounting/cash-summary.html @@ -27,7 +27,7 @@ First written: 2020/7/15 {% load accounting %} {% block settings %} - {% blocktrans asvar title with account=current_account.title|title context "Accounting|" %}Cash Summary for {{ account }}{% endblocktrans %} + {% blocktrans asvar title with account=account.title|title context "Accounting|" %}Cash Summary for {{ account }}{% endblocktrans %} {% setvar "title" title %} {% static "accounting/css/report.css" as css %} {% setvar "css" css %} @@ -66,20 +66,20 @@ First written: 2020/7/15 {% endwith %}
@@ -111,7 +111,7 @@ First written: 2020/7/15 {{ item.cumulative_balance|accounting_amount }} {% if item.month is not None %} - + {% trans "View" context "Accounting|" as text %}{{ text|force_escape }} @@ -127,7 +127,7 @@ First written: 2020/7/15 {% for item in item_list %}
  • {% if item.month is not None %} - + {{ item.label }}
    diff --git a/accounting/templates/accounting/cash.html b/accounting/templates/accounting/cash.html index 7d501e6..de78563 100644 --- a/accounting/templates/accounting/cash.html +++ b/accounting/templates/accounting/cash.html @@ -27,7 +27,7 @@ First written: 2020/7/1 {% load accounting %} {% block settings %} - {% blocktrans asvar title with account=current_account.title|title period=period.description context "Accounting|" %}Cash Account for {{ account }} in {{ period }}{% endblocktrans %} + {% blocktrans asvar title with account=account.title|title period=period.description context "Accounting|" %}Cash Account for {{ account }} in {{ period }}{% endblocktrans %} {% setvar "title" title %} {% setvar "use_period_chooser" True %} {% static "accounting/css/report.css" as css %} @@ -67,20 +67,20 @@ First written: 2020/7/1 {% endwith %}
    diff --git a/accounting/templates/accounting/ledger-summary.html b/accounting/templates/accounting/ledger-summary.html index e2e1a5f..65e0c34 100644 --- a/accounting/templates/accounting/ledger-summary.html +++ b/accounting/templates/accounting/ledger-summary.html @@ -27,7 +27,7 @@ First written: 2020/7/16 {% load accounting %} {% block settings %} - {% blocktrans asvar title with account=current_account.title|title context "Accounting|" %}Ledger Summary for {{ account }}{% endblocktrans %} + {% blocktrans asvar title with account=account.title|title context "Accounting|" %}Ledger Summary for {{ account }}{% endblocktrans %} {% setvar "title" title %} {% static "accounting/css/report.css" as css %} {% setvar "css" css %} @@ -66,13 +66,13 @@ First written: 2020/7/16 {% endwith %}
    @@ -96,7 +96,7 @@ First written: 2020/7/16 {% for item in item_list %} - + {{ item.label }} {{ item.debit|accounting_amount }} {{ item.credit|accounting_amount }} @@ -104,7 +104,7 @@ First written: 2020/7/16 {{ item.cumulative_balance|accounting_amount }} {% if item.month is not None %} - + {% trans "View" context "Accounting|" as text %}{{ text|force_escape }} @@ -118,9 +118,9 @@ First written: 2020/7/16 {# The list for small screens #}