2018-10-05 09:55:29 +00:00
|
|
|
#logo
|
|
|
|
img(src="/images/logo.png" width=111 height=32)
|
|
|
|
|
|
|
|
#search-bar
|
2019-02-04 08:48:39 +00:00
|
|
|
input#search-input(type='search')
|
|
|
|
i#search-icon.icon-magnifier(aria-hidden='true')
|
|
|
|
i#close-search-icon.icon-close(aria-hidden='true')
|
2018-10-05 09:55:29 +00:00
|
|
|
|
2019-02-28 09:44:32 +00:00
|
|
|
sib-notifications(
|
|
|
|
id-suffix="inbox",
|
|
|
|
bind-user
|
|
|
|
)
|
2018-10-05 09:55:29 +00:00
|
|
|
|
2019-04-16 12:56:25 +00:00
|
|
|
sib-widget(name="user-picture")
|
|
|
|
template
|
|
|
|
img(name="${name}",src="\${value || '/images/user.jpg'}",style="max-width:100%; max-height: 100%;")
|
|
|
|
|
2019-03-11 18:48:51 +00:00
|
|
|
details#user-controls
|
|
|
|
summary(tabindex='0' role='button')
|
|
|
|
sib-display#user-controls__profile(
|
|
|
|
data-fields='first_name, account.picture',
|
2019-04-16 12:56:25 +00:00
|
|
|
widget-account.picture='user-picture',
|
2019-03-11 18:48:51 +00:00
|
|
|
bind-user
|
|
|
|
)
|
|
|
|
#user-controls__panel
|
|
|
|
include page-user-panel.pug
|
2018-12-10 12:30:15 +00:00
|
|
|
|
2019-04-04 14:41:23 +00:00
|
|
|
button(role='log in' onclick="document.querySelector('sib-auth').login();") Login
|
2019-04-03 13:28:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
sib-auth
|
|
|
|
sib-auth-provider(
|
|
|
|
class="sib-auth-provider"
|
|
|
|
data-authority=`${sdn}/openid/`
|
|
|
|
data-client_id=`${client_id}`,
|
|
|
|
data-id="paris"
|
|
|
|
data-response_type='id_token token',
|
|
|
|
data-scope='openid profile email',
|
|
|
|
data-automaticSilentRenew='true',
|
|
|
|
data-loadUserInfo='true'
|
|
|
|
)
|
|
|
|
|