|
|
|
@ -2,10 +2,12 @@ extends ../layouts/room
|
|
|
|
|
block content
|
|
|
|
|
|
|
|
|
|
mixin renderRoomTile (room)
|
|
|
|
|
a(href=`/chat/room/${room._id}`).uk-display-block.uk-link-reset
|
|
|
|
|
div(data-room-id= room._id, data-room-name= room.name).uk-tile.uk-tile-default.uk-tile-small
|
|
|
|
|
.uk-tile-body
|
|
|
|
|
div(uk-grid).uk-grid-small
|
|
|
|
|
.uk-width-auto
|
|
|
|
|
+renderProfileIcon(room.owner)
|
|
|
|
|
.uk-width-expand
|
|
|
|
|
.uk-margin-small
|
|
|
|
|
div(title= room.name).uk-text-bold.uk-text-truncate= room.name
|
|
|
|
@ -19,11 +21,14 @@ block content
|
|
|
|
|
span.uk-margin-small-left= formatCount(room.members.length)
|
|
|
|
|
|
|
|
|
|
.uk-height-1-1.uk-overflow-auto
|
|
|
|
|
|
|
|
|
|
h1 Public Rooms
|
|
|
|
|
.uk-card.uk-card-default.uk-card-small
|
|
|
|
|
.uk-card-header
|
|
|
|
|
h1.uk-card-title Public Chat Rooms
|
|
|
|
|
.uk-card-body
|
|
|
|
|
if Array.isArray(publicRooms) && (publicRooms.length > 0)
|
|
|
|
|
div(uk-grid)
|
|
|
|
|
each room in publicRooms
|
|
|
|
|
.uk-width-1-3
|
|
|
|
|
div(class="uk-width-1-1 uk-width-1-2@m uk-width-1-3@l")
|
|
|
|
|
+renderRoomTile(room)
|
|
|
|
|
|
|
|
|
|
pre= JSON.stringify(publicRooms, null, 2)
|
|
|
|
|
else
|
|
|
|
|
div #{site.name} has no public rooms.
|