{% if title %} {% else %} {% with account=part.account_root() %} {% include "inc/account.html" %} {% endwith %} {% endif %} {% set last = None %} {% for period in part.periods() %} {% set current = part.balance(period=period) %} {% include "inc/value-percent.html" %} {% set last = current %} {% endfor %} {% if part.accounts()|count > 1 %} {% for account in part.accounts() %} {% include "inc/account.html" %} {% set last = None %} {% for period in part.periods() %} {% set current = part.balance(account,period) %} {% include "inc/value-percent.html" %} {% set last = current %} {% endfor %} {% endfor %} {% endif %}