%! def mxc2url(mxc): serverName = mxc.split('/')[2] mediaId = mxc.split('/')[3] return "https://matrix.org/_matrix/media/v3/download/" + serverName + "/" + mediaId %>
<%def name="render(space)">% endif % if 'room_type' in room and room['room_type'] == "m.space": | Subspace: ${room['name']} |
${render(room['children_state'])} |
% if 'name' in room:
${room['name']}
% endif
|
% endif
% endif
% endfor