Add details tag

This commit is contained in:
Rampoina 2022-04-18 00:19:31 +02:00
parent 5457fa834f
commit 6f97016c04
2 changed files with 14 additions and 1 deletions

View File

@ -6,6 +6,10 @@
align-items: center;
display:flex;
}
summary {
display:flex;
}
img.avatar {
-webkit-border-radius: 50%;
-moz-border-radius: 50%;

View File

@ -13,6 +13,10 @@
<%def name="render(room)">
<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'])}>
@ -31,13 +35,18 @@
</a>
% endif
</div>
% if room['name'] != "TOP" and room['name'] != "Libre Gaming":
</summary>
% endif
% endif
% if 'children' in room:
<details>
% for subroom in room['children']:
${render(subroom)}
% endfor
% if room['name'] != "TOP" and room['name'] != "Libre Gaming":
</details>
% endif
% endif
</div>