layouts.jade 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. head
  2. title
  3. meta(name="viewport" content="width=device-width, initial-scale=1")
  4. meta(http-equiv="X-UA-Compatible" content="IE=edge")
  5. //- XXX We should use pathFor in the following `href` to support the case
  6. where the application is deployed with a path prefix, but it seems to be
  7. difficult to do that cleanly with Blaze -- at least without adding extra
  8. packages.
  9. link(rel="shortcut icon" type="image/x-icon" href="/favicon.ico")
  10. link(rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png")
  11. link(rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png")
  12. link(rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png")
  13. link(rel="manifest" crossOrigin="use-credentials" href="/site.webmanifest")
  14. link(rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5")
  15. meta(name="apple-mobile-web-app-title" content="Wekan")
  16. meta(name="application-name" content="Wekan")
  17. meta(name="msapplication-TileColor" content="#00aba9")
  18. meta(name="theme-color" content="#ffffff")
  19. //link(rel="stylesheet" type="text/css" class="__meteor-css__" href="css/html5-default-theme.css")
  20. template(name="userFormsLayout")
  21. section.auth-layout
  22. if currentSetting.hideLogo
  23. h1.at-form-landing-logo
  24. br
  25. br
  26. unless currentSetting.hideLogo
  27. h1.at-form-landing-logo
  28. if currentSetting.customLoginLogoImageUrl
  29. if currentSetting.customLoginLogoLinkUrl
  30. a(href="{{currentSetting.customLoginLogoLinkUrl}}")
  31. img(src="{{currentSetting.customLoginLogoImageUrl}}" width="300" height="auto")
  32. br
  33. unless currentSetting.customLoginLogoLinkUrl
  34. img(src="{{currentSetting.customLoginLogoImageUrl}}" width="300" height="auto")
  35. br
  36. unless currentSetting.customLoginLogoImageUrl
  37. div#isSettingDatabaseCallDone
  38. img(src="{{pathFor '/wekan-logo.svg'}}" alt="" width="300" height="auto")
  39. br
  40. if currentSetting.textBelowCustomLoginLogo
  41. +viewer
  42. | {{currentSetting.textBelowCustomLoginLogo}}
  43. br
  44. section.auth-dialog
  45. if isLoading
  46. +loader
  47. else
  48. +Template.dynamic(template=content)
  49. if currentSetting.displayAuthenticationMethod
  50. +connectionMethod(authenticationMethod=currentSetting.defaultAuthenticationMethod)
  51. if isLegalNoticeLinkExist
  52. div#legalNoticeDiv
  53. span#legalNoticeSpan {{_ 'acceptance_of_our_legalNotice'}}
  54. a#legalNoticeAtLink.at-link(href="{{currentSetting.legalNotice}}", target="_blank", rel="noopener noreferrer")
  55. | {{_ 'legalNotice'}}
  56. if getLegalNoticeWithWritTraduction
  57. div
  58. div.at-form-lang
  59. select.select-lang.js-userform-set-language
  60. each languages
  61. if isCurrentLanguage
  62. option(value="{{tag}}" selected="selected") {{name}}
  63. else
  64. option(value="{{tag}}") {{name}}
  65. template(name="defaultLayout")
  66. +header
  67. #content
  68. | {{{afterBodyStart}}}
  69. +Template.dynamic(template=content)
  70. | {{{beforeBodyEnd}}}
  71. if (Modal.isOpen)
  72. #modal
  73. .overlay
  74. if (Modal.isWide)
  75. .modal-content-wide.modal-container
  76. a.modal-close-btn.js-close-modal
  77. i.fa.fa-times-thin
  78. +Template.dynamic(template=Modal.getHeaderName)
  79. +Template.dynamic(template=Modal.getTemplateName)
  80. else
  81. .modal-content.modal-container
  82. a.modal-close-btn.js-close-modal
  83. i.fa.fa-times-thin
  84. +Template.dynamic(template=Modal.getHeaderName)
  85. +Template.dynamic(template=Modal.getTemplateName)
  86. template(name="notFound")
  87. +message(label='page-not-found')
  88. template(name="message")
  89. .big-message.quiet(class=color)
  90. h1 {{_ label}}
  91. unless currentUser
  92. with(pathFor route='atSignIn')
  93. p {{{_ 'page-maybe-private' this}}}
  94. template(name="loader")
  95. h1.loadingText {{_ 'loading'}}
  96. .lds-roller
  97. div
  98. div
  99. div
  100. div
  101. div
  102. div
  103. div