{#- Small formatting macros shared by the broker pages. -#} {%- macro rate(ok, total) -%}{% if total %}{% set r10 = (ok * 1000) // total %}{{ r10 // 10 }}.{{ r10 % 10 }}%{% else %}-{% endif %}{%- endmacro -%} {%- macro flash(message, tone='ok') -%}{% if message %}