Compare commits

...

6 Commits

Author SHA1 Message Date
Phil Morrell 6fe8c75306
Merge branch 'layout' 2022-06-11 19:09:31 +01:00
Phil Morrell c6ef2e8571
Update generated list 2022-06-11 19:08:38 +01:00
Phil Morrell ac7b5f1f1e
drop empty.png 2022-06-11 19:07:50 +01:00
Phil Morrell 3aab31e404
display topic to be a bit more descriptive
* couldn't work out how to put it directly under the room name
* drop theme source since there's nothing left of it
2022-06-11 19:05:45 +01:00
Phil Morrell 137f03796b
link to alias where possible
* view.matrix.org only works on public history rooms
* start with our Space and Community expanded :p
2022-06-11 19:03:58 +01:00
Phil Morrell 79d1859d7d
Update data export and generated list
* replace `/unstable/org.matrix.msc2946/` with `/v1/`
2022-06-11 17:13:56 +01:00
5 changed files with 3552 additions and 900 deletions

BIN
empty.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 B

File diff suppressed because it is too large Load Diff

1945
list.html

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,3 @@
/* Theming taken from https://github.com/vector-im/riot-web/blob/cf5cf02529f95a094d88051c12fdb87a03d87335/src/skins/vector/css/themes/_base.scss */
.room {
margin-left: 2em;
}
@ -21,7 +20,23 @@ summary {
margin: 0.5em;
}
img.roomAvatar {
.roomAvatar {
height: 36px;
width: 36px;
margin: 0.5em;
}
.topic {
font-size: smaller;
color: DarkSlateGrey;
margin-left: 2em;
width: 40em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.topic:hover {
overflow: visible;
}

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">
@ -24,13 +26,15 @@
% if 'avatar_url' in room:
<img class="avatar roomAvatar" src=${mxc2url(room['avatar_url'])}>
% else:
<img class="avatar roomAvatar" src="./empty.png">
<div class="avatar roomAvatar"></div>
% endif
% 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
@ -39,6 +43,10 @@
% endif
</a>
% if 'topic' in room:
<p class="topic"> ${room['topic']} </p>
% endif
% endif
</div>
% if room['name'] != "TOP" and room['name'] != "Libre Gaming" and 'children' in room: