%! 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)">
% endif
% if 'room_id' in room:
% if 'name' in room:
${room['name']}
% endif
% endif
|
${render(subroom)} |