<style>
body { background-color: white; font-family: sans-serif; }
tr:nth-child(odd) { background-color: #dcdcdc; }
-tr.warning td { background-color: #ff8888; }
-td.invalid, tr.warning td.invalid { background-color: #ff0000; }
{% block css %}{% endblock %}
</style>
</head>
-{% macro css_value_line() %}
+{% macro css_td_money() %}
td.amt { text-align: right }
td.amt, td.curr { font-family: monospace; font-size: 1.3em; }
-td.curr { text-align: center; }
+td.curr { text-align: left; }
+{% endmacro %}
+
+{% macro css_errors() %}
+tr.warning td { background-color: #ff8888; }
+td.invalid, tr.warning td.invalid { background-color: #ff0000; }
{% endmacro %}
{% macro table_dat_lines(dat_lines, single, raw) %}
{% extends '_base.tmpl' %}
-
{% macro account_with_children(account, indent) %}
<tr>
-<td>{% for _ in range(indent) %} {% endfor %}{{account.basename}}</td>
-<td>
{% for curr, amt in account.wealth.moneys.items() %}
-{{amt}}{{curr}}
+{% if 1 == loop.index %}
+<td class="amt">{{amt}}</td>
+<td class="curr">{{curr|truncate(4,true,"…")}}</td>
+{% endif %}
{% endfor %}
-</td>
+<td>{% for _ in range(indent) %} {% endfor %}{{account.basename}}</td>
+</tr>
+{% for curr, amt in account.wealth.moneys.items() %}
+{% if 1 < loop.index %}
+<tr>
+<td class="amt">{{amt}}</td>
+<td class="curr">{{curr|truncate(4,true,"…")}}</td>
</tr>
+{% endif %}
+{% endfor %}
{% for child in account.children %}
{{ account_with_children(child, indent=indent+1) }}
{% endfor %}
{% endmacro %}
+{% block css %}
+{{ macros.css_td_money() }}
+{% endblock css %}
+
{% block content %}
<table>
{% for root in roots %}
{% extends '_base.tmpl' %}
+
{% block css %}
-{{ macros.css_value_line() }}
+{{ macros.css_td_money() }}
+{{ macros.css_errors() }}
{% endblock %}
{% block content %}
{% extends '_base.tmpl' %}
+
{% block css %}
-{{ macros.css_value_line() }}
+{{ macros.css_td_money() }}
+{{ macros.css_errors() }}
{% endblock %}
{% block content %}
{% extends '_base.tmpl' %}
+
{% block css %}
table { font-family: monospace; }
+{{ macros.css_errors() }}
{% endblock %}
{% block content %}