parent
637d0fb03b
commit
40cae0d899
@ -1,4 +1,17 @@
|
||||
mixin renderRoomList (rooms)
|
||||
each room in rooms
|
||||
li.uk-active
|
||||
a(href=`/chat/room/${room._id}`)= room.name
|
||||
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
|
Loading…
Reference in new issue