link to alias where possible

* view.matrix.org only works on public history rooms
* start with our Space and Community expanded :p
This commit is contained in:
Phil Morrell 2022-06-11 19:03:58 +01:00
parent 79d1859d7d
commit 137f03796b
Signed by: emorrp1
GPG Key ID: DBCA65091F248E6C
1 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,9 @@
<div class="room">
% if room['name'] != "TOP":
% if room['name'] != "TOP" and room['name'] != "Libre Gaming" and 'children' in room:
% if room['name'].startswith('Libre Gaming'):
<details open><summary>
% elif room['name'] != "TOP" and room['name'] != "Libre Gaming" and 'children' in room:
<details><summary>
% endif
<div class="info">
@ -30,7 +32,9 @@
% if 'room_id' in room:
% if 'children' not in room:
% if 'canonical_alias' in room:
<a href="https://matrix.to/#/${room['canonical_alias']}">
% elif 'children' not in room and room['world_readable']:
<a href="https://view.matrix.org/room/${room['room_id']}">
% endif