<%! def mxc2url(mxc): serverName = mxc.split('/')[2] mediaId = mxc.split('/')[3] return "https://matrix.org/_matrix/media/v3/download/" + serverName + "/" + mediaId %> <%def name="render(room)">
% if room['name'] != "TOP": % if room['name'].startswith('Libre Gaming'):
% elif room['name'] != "TOP" and room['name'] != "Libre Gaming" and 'children' in room:
% endif
% if room['name'] != "TOP" and room['name'] != "Libre Gaming" and 'children' in room:
% endif % if 'avatar_url' in room: % else:
% endif % if 'room_id' in room: % if 'canonical_alias' in room: % elif 'children' not in room and room['world_readable']: % endif % if 'name' in room:
${room['name']}
% endif
% if 'topic' in room:

${room['topic']}

% endif % endif
% if room['name'] != "TOP" and room['name'] != "Libre Gaming" and 'children' in room:
% endif % endif % if 'children' in room: % for subroom in room['children']: ${render(subroom)} % endfor % if room['name'] != "TOP" and room['name'] != "Libre Gaming":
% endif % endif
${render(s)}