<% relay_hosts = h.relayed_via(c.msg.headers) %> % if not relay_hosts:    -- direct connection -- % else: % for relay in relay_hosts:
${h.wrap_paragraphs(relay['ip_address'], 18)}
${h.wrap_paragraphs(relay['hostname'], 35)}
% if relay['country_code'] and relay['country_code'] != 'unknown': ${h.portable_img("imgs/flags/"+relay['country_code']+".png", relay['country_code'], class_="positio", title=relay['country_name'])} % endif
% endfor % endif