2 changed files with 19 additions and 21 deletions
@ -1,4 +1,17 @@ |
|||||
mixin renderRoomList (rooms) |
mixin renderRoomList (rooms, options) |
||||
each room in rooms |
ul#room-list.uk-nav.uk-nav-default |
||||
li.uk-active |
|
||||
a(href=`/chat/room/${room._id}`)= room.name |
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