{# Trends table partial: swapped by the controls form via htmx. #} {% macro amount_cell(row, period) -%} {%- if period.key in row.cells -%} {%- set value = row.cells[period.key] -%} {{ '%.2f'|format(value) }} {%- else -%} {%- endif -%} {%- endmacro %} {% macro total_cell(value) -%} {{ '%.2f'|format(value) }} {%- endmacro %} {% if table.rows %} {% else %} {% endif %}