ui : chat page plug to menu

This commit is contained in:
simon louvet 2018-12-08 23:42:59 +01:00
parent 0a9401fd09
commit 260cfb20ba
5 changed files with 17 additions and 17 deletions

View File

@ -19,6 +19,8 @@ html(lang="en")
include page-dashboard.pug
#members(hidden)
include page-members.pug
#member-chat(hidden)
include page-member-chat.pug
#member(hidden)
include page-member.pug
#job-offers(hidden)

View File

@ -48,11 +48,11 @@ nav#navbar
div.menu-icon.icon-arrow-down
div.menu-label Chat
div.menu-icon.icon-envelope-letter
sib-route(hidden, name='chat', id-prefix=`${sdn}/members/`)
sib-route(hidden, name='member-chat', id-prefix=`${sdn}/members/`)
div.sub-menu
sib-display(
data-src=`${sdn}/members/`,
data-fields='pseudo',
next='chat'
next='member-chat'
)
div.divider

View File

@ -1,9 +1,10 @@
.chat-view
sib-chat(
data-authentication='login',
data-auto-login='true',
data-bosh-service-url=xmpp,
data-debug='false',
data-locales-url='en',
bind-resources
)
div
.chat-view
sib-chat(
data-authentication='login',
data-auto-login='true',
data-bosh-service-url=xmpp,
data-debug='false',
data-locales-url='en',
bind-resources
)

View File

@ -1,7 +1,5 @@
sib-router#member-router(default-route='member-profile')
sib-route(name='member-chat')
div Chat
sib-route(name='member-profile')
div Profile
sib-ac-checker(permission='change' bind-resources)
@ -10,8 +8,6 @@ sib-router#member-router(default-route='member-profile')
#member-views-container
sib-trigger(next="members" class="back") Back to directory
div
#member-chat
include page-member-chat.pug
#member-profile
include page-member-profile.pug
#member-edit

View File

@ -1,8 +1,8 @@
div.grid-layer
template#read-more-link
sib-link(next="member") ${value}
template#read-more-link
sib-link(next="member") ${value}
template#chat-link
sib-link(next="member-chat") ${value}
div.grid-layer-main.containerV
h1 Members
sib-display#profiles-list(
@ -16,6 +16,7 @@ div.grid-layer
value-more='read more...',
template-more='hdapp-link-more',
value-send='SEND A MESSAGE',
template-send='chat-link',
widget-avatar='sib-display-img',
widget-user='hdapp-userinfo',
widget-foaf:hompage='hdapp-hyperlink',