Compare commits
3 Commits
bd7e5f68dd
...
694c809dda
Author | SHA1 | Date |
---|---|---|
Rampoina | 694c809dda | |
Rampoina | 6f97016c04 | |
Rampoina | 5457fa834f |
8
main.css
8
main.css
|
@ -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%;
|
||||
|
|
46
spaces.html
46
spaces.html
|
@ -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)}
|
||||
|
|
Loading…
Reference in New Issue