wikijs-fork/server/views/auth/login.pug

76 lines
3.4 KiB
Plaintext
Raw Normal View History

2016-10-23 23:41:02 +00:00
doctype html
2017-03-27 02:07:40 +00:00
html(data-logic='login')
2017-02-10 02:35:37 +00:00
head
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(charset='UTF-8')
meta(name='viewport', content='width=device-width, initial-scale=1')
meta(name='theme-color', content='#009688')
meta(name='msapplication-TileColor', content='#009688')
meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png')
title= appconfig.title
2016-10-23 23:41:02 +00:00
2017-02-10 02:35:37 +00:00
// Favicon
each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png')
each favsize in [32, 96, 16]
link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
link(rel='manifest', href='/manifest.json')
2016-10-23 23:41:02 +00:00
2017-03-27 02:07:40 +00:00
// JS / CSS
2017-07-09 00:24:21 +00:00
//- script(type='text/javascript', src=appconfig.host + '/js/vendor.js')
2017-06-18 22:35:33 +00:00
script(type='text/javascript', src=appconfig.host + '/js/app.js')
2016-10-23 23:41:02 +00:00
2017-02-10 02:35:37 +00:00
body
#bg
each bg in _.sampleSize([1, 2, 3],3)
div(style='background-image:url(/images/bg_' + bg + '.jpg);')
#root
h1= appconfig.title
2017-05-03 00:53:01 +00:00
h2= t('auth:loginrequired')
2017-02-10 02:35:37 +00:00
if appflash.length > 0
h3
2017-03-12 04:38:47 +00:00
i.icon-warning-outline
2017-02-10 02:35:37 +00:00
= appflash[0].title
h4= appflash[0].message
if appconfig.auth.local.enabled
form(method='post', action='/login')
2017-05-03 00:53:01 +00:00
input#login-user(type='text', name='email', placeholder=t('auth:fields.emailuser'))
input#login-pass(type='password', name='password', placeholder=t('auth:fields.password'))
button(type='submit')= t('auth:actions.login')
2017-02-10 02:35:37 +00:00
if appconfig.authStrategies.socialEnabled
#social
if appconfig.auth.local.enabled
2017-05-03 00:53:01 +00:00
span= t('auth:loginusingalt')
2017-02-10 02:35:37 +00:00
else
2017-05-03 00:53:01 +00:00
span= t('auth:loginusing')
2017-02-10 02:35:37 +00:00
if appconfig.auth.microsoft && appconfig.auth.microsoft.enabled
button.ms(onclick='window.location.assign("/login/ms")')
i.icon-windows2
2017-05-03 00:53:01 +00:00
span= t('auth:providers.windowslive')
if appconfig.auth.azure && appconfig.auth.azure.enabled
button.ms(onclick='window.location.assign("/login/azure")')
i.icon-windows2
2017-05-03 00:53:01 +00:00
span= t('auth:providers.azure')
2017-02-10 02:35:37 +00:00
if appconfig.auth.google && appconfig.auth.google.enabled
button.google(onclick='window.location.assign("/login/google")')
i.icon-google
2017-05-03 00:53:01 +00:00
span= t('auth:providers.google')
2017-02-10 02:35:37 +00:00
if appconfig.auth.facebook && appconfig.auth.facebook.enabled
button.facebook(onclick='window.location.assign("/login/facebook")')
i.icon-facebook
2017-05-03 00:53:01 +00:00
span= t('auth:providers.facebook')
if appconfig.auth.github && appconfig.auth.github.enabled
button.github(onclick='window.location.assign("/login/github")')
i.icon-github
2017-05-03 00:53:01 +00:00
span= t('auth:providers.github')
if appconfig.auth.slack && appconfig.auth.slack.enabled
button.slack(onclick='window.location.assign("/login/slack")')
i.icon-slack
2017-05-03 00:53:01 +00:00
span= t('auth:providers.slack')
2017-02-10 02:35:37 +00:00
#copyright
= t('footer.poweredby') + ' '
a.icon(href='https://github.com/Requarks/wiki')
i.icon-github
a(href='https://wiki.requarks.io/') Wiki.js