libregamingspaces/spaces.html

36 lines
971 B
HTML
Raw Normal View History

2022-01-15 14:40:52 +01:00
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="main.css">
</head>
<body>
<%def name="render(space)">
<table id="roomList">
<tbody>
% for room in space:
<tr>
% if 'room_type' in room and room['room_type'] == "m.space":
<td> Subspace: ${room['name']} <td>
${render(room['children_state'])}
% else:
% if 'room_id' in room:
<td>
<a href="https://view.matrix.org/room/${room['room_id']}">
% if 'name' in room:
<div> ${room['name']} </td>
% endif
</a>
</td>
% endif
% endif
</tr>
% endfor
</tbody>
</%def>
${render(s)}
</body>
</html>