Compare commits

...

3 Commits

Author SHA1 Message Date
Rampoina 694c809dda Update generated html 2022-04-18 00:19:44 +02:00
Rampoina 6f97016c04 Add details tag 2022-04-18 00:19:31 +02:00
Rampoina 5457fa834f Simplify html and css 2022-04-18 00:09:18 +02:00
3 changed files with 3329 additions and 2322 deletions

5597
list.html

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,15 @@
/* Theming taken from https://github.com/vector-im/riot-web/blob/cf5cf02529f95a094d88051c12fdb87a03d87335/src/skins/vector/css/themes/_base.scss */
table {
.room {
margin-left: 2em;
}
td {
.info {
align-items: center;
display:flex;
}
summary {
display:flex;
}
img.avatar {
-webkit-border-radius: 50%;
-moz-border-radius: 50%;

View File

@ -11,33 +11,45 @@
</head>
<body>
<%def name="render(room)">
<table>
<tbody>
<tr>
% if 'avatar_url' in room:
<td><img class="avatar roomAvatar" src=${mxc2url(room['avatar_url'])}>
% endif
% if 'room_id' in room:
<a href="https://view.matrix.org/room/${room['room_id']}">
% if 'name' in room:
<div> ${room['name']} </div>
<div class="room">
% if room['name'] != "TOP":
% if room['name'] != "TOP" and room['name'] != "Libre Gaming":
<details><summary>
% endif
<div class="info">
% if 'avatar_url' in room:
<img class="avatar roomAvatar" src=${mxc2url(room['avatar_url'])}>
% endif
</a>
% if 'room_id' in room:
% if 'children' not in room:
<a href="https://view.matrix.org/room/${room['room_id']}">
% endif
% if 'name' in room:
<div> ${room['name']} </div>
% endif
</a>
% endif
</div>
% if room['name'] != "TOP" and room['name'] != "Libre Gaming":
</summary>
% endif
% endif
</td>
</tr>
% if 'children' in room:
% for subroom in room['children']:
<tr><td>${render(subroom)}</td></tr>
${render(subroom)}
% endfor
% if room['name'] != "TOP" and room['name'] != "Libre Gaming":
</details>
% endif
% endif
</div>
</tbody>
</table>
</%def>
${render(s)}