{% macro copy_balance_directives_text() -%}
{{ _('Click to copy balance directives for accounts (except green ones) to the clipboard:') }}
{% for account in api.all_accounts_active -%}
{% if account|uptodate_eligible %}
{%- if api.account_uptodate_status(account) != "green" -%}
{{- account_macros.balance_directive(account) }}
{%- endif -%}
{% endif %}
{%- endfor -%}
{%- endmacro %}
{% set clipboard_text = copy_balance_directives_text() %}
{% set status_sortorder = { 'red': 5, 'yellow': 4, 'green': 3, '': 2 } %}
{{ _('Update Activity') }}
{{ _('Account') }}
{{ _('Last Entry') }}
{{ _('Balance') }}
{% for account in api.all_accounts_active %}
{% if account.startswith(api.options['name_assets']) or account.startswith(api.options['name_liabilities']) %}
{% set last_entry = api.last_entry(account) %}
{% if last_entry %}