+{% macro css_value_line() %}
+td.amt { text-align: right }
+td.amt, td.curr { font-family: monospace; font-size: 1.3em; }
+td.curr { text-align: center; }
+{% endmacro %}
+
+{% macro table_dat_lines(dat_lines, single, raw) %}
+<table>
+{% for dat_line in dat_lines %}
+ {% if (not (raw or single)) and dat_line.type == "intro" and loop.index > 1 %}
+ <tr><td colspan=5> </td></tr>
+ {% endif %}
+ <tr class="{{dat_line.type}}">
+ {% if not single %}
+ {% if dat_line.type == "intro" %}
+ <td id="{{dat_line.booking_id}}"><a href="#{{dat_line.booking_id}}">#</a></td>
+ {% else %}
+ <td></td>
+ {% endif %}
+ {% endif %}
+ {% if raw %}
+ {% if dat_line.type == "intro" %}
+ <td><a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp}}</a></td>
+ {% else %}
+ <td>{{dat_line.raw_nbsp}}</td>
+ {% endif %}
+ {% else %}
+ {% if dat_line.type == "intro" %}
+ <td class="code" colspan=3><a href="/booking/{{dat_line.booking_id}}">{{dat_line.code}}</a></td>
+ {% elif dat_line.type == "value" %}
+ <td class="amt">{{dat_line.booking_line.amt}}</td>
+ <td class="curr">{{dat_line.booking_line.curr|truncate(4,true,"…")}}</td>
+ <td>{{dat_line.booking_line.acc}}</td>
+ {% else %}
+ <td colspan=3>{{dat_line.code}}</td>
+ {% endif %}
+ <td>{{dat_line.comment}}</td>
+ {% endif %}
+ </tr>
+{% endfor %}
+</table>
+{% endmacro %}