layouts.jade 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. head
  2. title Wekan
  3. meta(name="viewport"
  4. content="maximum-scale=1.0,width=device-width,initial-scale=1.0,user-scalable=0")
  5. meta(http-equiv="X-UA-Compatible" content="IE=edge")
  6. //- XXX We should use pathFor in the following `href` to support the case
  7. where the application is deployed with a path prefix, but it seems to be
  8. difficult to do that cleanly with Blaze -- at least without adding extra
  9. packages.
  10. link(rel="shortcut icon" href="/public/wekan-favicon.png")
  11. link(rel="apple-touch-icon" href="/public/wekan-favicon.png")
  12. link(rel="mask-icon" href="/public/wekan-150.svg")
  13. link(rel="manifest" href="/public/wekan-manifest.json")
  14. template(name="userFormsLayout")
  15. section.auth-layout
  16. unless currentSetting.hideLogo
  17. h1.at-form-landing-logo
  18. img(src="{{pathFor '/wekan-logo.png'}}" alt="Wekan")
  19. if currentSetting.hideLogo
  20. h1
  21. br
  22. br
  23. section.auth-dialog
  24. +Template.dynamic(template=content)
  25. +connectionMethod
  26. if isCas
  27. .at-form
  28. button#cas(class='at-btn submit' type='submit') {{casSignInLabel}}
  29. div.at-form-lang
  30. select.select-lang.js-userform-set-language
  31. each languages
  32. if isCurrentLanguage
  33. option(value="{{tag}}" selected="selected") {{name}}
  34. else
  35. option(value="{{tag}}") {{name}}
  36. template(name="defaultLayout")
  37. +header
  38. #content
  39. | {{{afterBodyStart}}}
  40. +Template.dynamic(template=content)
  41. | {{{beforeBodyEnd}}}
  42. if (Modal.isOpen)
  43. #modal
  44. .overlay
  45. if (Modal.isWide)
  46. .modal-content-wide.modal-container
  47. a.modal-close-btn.js-close-modal
  48. i.fa.fa-times-thin
  49. +Template.dynamic(template=Modal.getHeaderName)
  50. +Template.dynamic(template=Modal.getTemplateName)
  51. else
  52. .modal-content.modal-container
  53. a.modal-close-btn.js-close-modal
  54. i.fa.fa-times-thin
  55. +Template.dynamic(template=Modal.getHeaderName)
  56. +Template.dynamic(template=Modal.getTemplateName)
  57. template(name="notFound")
  58. +message(label='page-not-found')
  59. template(name="message")
  60. .big-message.quiet(class=color)
  61. h1 {{_ label}}
  62. unless currentUser
  63. with(pathFor route='atSignIn')
  64. p {{{_ 'page-maybe-private' this}}}