You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
548 B
17 lines
548 B
mixin renderRoomList (rooms, options)
|
|
ul#room-list.uk-nav.uk-nav-default
|
|
|
|
li.uk-nav-header
|
|
div(uk-grid).uk-grid-small
|
|
.uk-text-bold.uk-width-expand= options.title
|
|
if !options.hideCreate
|
|
.uk-width-auto
|
|
a(href='/chat/room/create', title= "Create new chat room...").uk-link-reset
|
|
i.fas.fa-plus
|
|
|
|
if Array.isArray(rooms) && (rooms.length > 0)
|
|
each room in rooms
|
|
li.uk-active
|
|
a(href=`/chat/room/${room._id}`)= room.name
|
|
else
|
|
li= options.emptyPrompt |