%!
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'] != "TOP" and room['name'] != "Libre Gaming":
% endif
% if room['name'] != "TOP" and room['name'] != "Libre Gaming":
% 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
%def>
${render(s)}