This commit is contained in:
Gaelle Morin 2018-12-07 17:25:05 +01:00
parent 7ef17b5fa8
commit 237df22d66
3 changed files with 8 additions and 8 deletions

View File

@ -5,7 +5,7 @@ script(src="/lib/webcomponentsjs/webcomponents-loader.js")
script(src="/lib/oidc-client.js") script(src="/lib/oidc-client.js")
script( script(
src="/lib/sib-oidc/sib-oidc.js" src="https://cdn.happy-dev.fr/sib-oidc/sib-oidc.js"
data-authority=`${sdn}/openid/`, data-authority=`${sdn}/openid/`,
data-client_id=`${client_id}`, data-client_id=`${client_id}`,
data-response_type='id_token token', data-response_type='id_token token',
@ -29,11 +29,11 @@ link(href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,6
// Web components // Web components
//- local //- local
link(rel='import', href='/lib/sib-core/sib-display.html') //- link(rel='import', href='/lib/sib-core/sib-display.html')
link(rel='import', href='/lib/sib-router/sib-router.html') link(rel='import', href='/lib/sib-router/sib-router.html')
//- link(rel='import', href='/lib/sib-chat/sib-chat.html') link(rel='import', href='/lib/sib-chat/sib-chat.html')
//- cdn //- cdn
link(rel='import', href="https://cdn.happy-dev.fr/sib-core/sib-display.html") link(rel='import', href="https://cdn.happy-dev.fr/sib-core/sib-display.html")
link(rel='import', href="https://cdn.happy-dev.fr/sib-router/sib-router.html") link(rel='import', href="https://cdn.happy-dev.fr/sib-router/sib-router.html")
link(rel='import', href="https://cdn.happy-dev.fr/sib-chat/sib-chat.html") link(rel='import', href="https://cdn.happy-dev.fr/sib-chat/sib-chat.html")

View File

@ -2,6 +2,6 @@ div.frame
h1 Notifications h1 Notifications
sib-display( sib-display(
data-src=`${sdn}/notifications/` bind-user
data-fields='summary' data-fields='summary'
) )

View File

@ -13,6 +13,7 @@
flex-shrink: 0; flex-shrink: 0;
align-items: center; align-items: center;
padding: 1em 0.4em; padding: 1em 0.4em;
position: relative;
> * { > * {
padding: 0 1.8rem; padding: 0 1.8rem;
@ -47,7 +48,6 @@
} }
#notifications { #notifications {
display: none;
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0;