layouts.jade 4.4 KB

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