You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.4 KiB

8 years ago
8 years ago
8 years ago
8 years ago
  1. doctype html
  2. html(data-logic='login')
  3. head
  4. meta(http-equiv='X-UA-Compatible', content='IE=edge')
  5. meta(charset='UTF-8')
  6. meta(name='viewport', content='width=device-width, initial-scale=1')
  7. meta(name='theme-color', content='#009688')
  8. meta(name='msapplication-TileColor', content='#009688')
  9. meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png')
  10. title= appconfig.title
  11. // Favicon
  12. each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
  13. link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
  14. link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png')
  15. each favsize in [32, 96, 16]
  16. link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
  17. link(rel='manifest', href='/manifest.json')
  18. // JS / CSS
  19. //- script(type='text/javascript', src='/js/libs.min.js')
  20. script(type='text/javascript', src='/js/app.min.js')
  21. body
  22. #bg
  23. each bg in _.sampleSize([1, 2, 3],3)
  24. div(style='background-image:url(/images/bg_' + bg + '.jpg);')
  25. #root
  26. h1= appconfig.title
  27. h2= t('auth:loginrequired')
  28. if appflash.length > 0
  29. h3
  30. i.icon-warning-outline
  31. = appflash[0].title
  32. h4= appflash[0].message
  33. if appconfig.auth.local.enabled
  34. form(method='post', action='/login')
  35. input#login-user(type='text', name='email', placeholder=t('auth:fields.emailuser'))
  36. input#login-pass(type='password', name='password', placeholder=t('auth:fields.password'))
  37. button(type='submit')= t('auth:actions.login')
  38. if appconfig.authStrategies.socialEnabled
  39. #social
  40. if appconfig.auth.local.enabled
  41. span= t('auth:loginusingalt')
  42. else
  43. span= t('auth:loginusing')
  44. if appconfig.auth.microsoft && appconfig.auth.microsoft.enabled
  45. button.ms(onclick='window.location.assign("/login/ms")')
  46. i.icon-windows2
  47. span= t('auth:providers.windowslive')
  48. if appconfig.auth.azure && appconfig.auth.azure.enabled
  49. button.ms(onclick='window.location.assign("/login/azure")')
  50. i.icon-windows2
  51. span= t('auth:providers.azure')
  52. if appconfig.auth.google && appconfig.auth.google.enabled
  53. button.google(onclick='window.location.assign("/login/google")')
  54. i.icon-google
  55. span= t('auth:providers.google')
  56. if appconfig.auth.facebook && appconfig.auth.facebook.enabled
  57. button.facebook(onclick='window.location.assign("/login/facebook")')
  58. i.icon-facebook
  59. span= t('auth:providers.facebook')
  60. if appconfig.auth.github && appconfig.auth.github.enabled
  61. button.github(onclick='window.location.assign("/login/github")')
  62. i.icon-github
  63. span= t('auth:providers.github')
  64. if appconfig.auth.slack && appconfig.auth.slack.enabled
  65. button.slack(onclick='window.location.assign("/login/slack")')
  66. i.icon-slack
  67. span= t('auth:providers.slack')
  68. #copyright
  69. = t('footer.poweredby') + ' '
  70. a.icon(href='https://github.com/Requarks/wiki')
  71. i.icon-github
  72. a(href='https://wiki.requarks.io/') Wiki.js