blob: a7e9399abf1b72c695522a469b71bb14ae00f89c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<details>
<summary>@roomType (@rooms.Count)</summary>
@foreach (var room in rooms) {
<div class="room-list-item">
<RoomListItem Room="@room" ShowOwnProfile="@(roomType == "Room")"></RoomListItem>
<MatrixRoomUtils.Web.Shared.SimpleComponents.LinkButton href="@($"/Rooms/{room.RoomId}/Timeline")">View timeline</MatrixRoomUtils.Web.Shared.SimpleComponents.LinkButton>
@if (roomType == "Space") {
<RoomListSpace Space="@room"></RoomListSpace>
}
</div>
}
</details>
<br/>
@code {
[Parameter]
public KeyValuePair<string, List<GenericRoom>> Category { get; set; }
private string roomType => Category.Key;
private List<GenericRoom> rooms => Category.Value;
}
|