layouts.jade 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. else
  37. img(src="{{pathFor '/wekan-logo.svg'}}" alt="" width="300" height="auto")
  38. br
  39. if currentSetting.textBelowCustomLoginLogo
  40. hr
  41. section.textBelowCustomLoginLogo
  42. +viewer
  43. | {{currentSetting.textBelowCustomLoginLogo}}
  44. hr
  45. section.auth-layout
  46. section.auth-dialog
  47. if isLoading
  48. +loader
  49. else
  50. +Template.dynamic(template=content)
  51. if currentSetting.displayAuthenticationMethod
  52. +connectionMethod(authenticationMethod=currentSetting.defaultAuthenticationMethod)
  53. if isLegalNoticeLinkExist
  54. div#legalNoticeDiv
  55. span#legalNoticeSpan {{_ 'acceptance_of_our_legalNotice'}}
  56. a#legalNoticeAtLink.at-link(href="{{currentSetting.legalNotice}}", target="_blank", rel="noopener noreferrer")
  57. | {{_ 'legalNotice'}}
  58. if getLegalNoticeWithWritTraduction
  59. div
  60. div.at-form-lang
  61. select.select-lang.js-userform-set-language
  62. each languages
  63. if isCurrentLanguage
  64. option(value="{{tag}}" selected="selected") {{name}}
  65. else
  66. option(value="{{tag}}") {{name}}
  67. template(name="defaultLayout")
  68. +header
  69. #content
  70. | {{{afterBodyStart}}}
  71. +Template.dynamic(template=content)
  72. | {{{beforeBodyEnd}}}
  73. if (Modal.isOpen)
  74. #modal
  75. .overlay
  76. if (Modal.isWide)
  77. .modal-content-wide.modal-container
  78. a.modal-close-btn.js-close-modal
  79. i.fa.fa-times-thin
  80. +Template.dynamic(template=Modal.getHeaderName)
  81. +Template.dynamic(template=Modal.getTemplateName)
  82. else
  83. .modal-content.modal-container
  84. a.modal-close-btn.js-close-modal
  85. i.fa.fa-times-thin
  86. +Template.dynamic(template=Modal.getHeaderName)
  87. +Template.dynamic(template=Modal.getTemplateName)
  88. template(name="notFound")
  89. +message(label='page-not-found')
  90. template(name="message")
  91. .big-message.quiet(class=color)
  92. h1 {{_ label}}
  93. unless currentUser
  94. with(pathFor route='atSignIn')
  95. p {{{_ 'page-maybe-private' this}}}
  96. template(name="loader")
  97. h1.loadingText {{_ 'loading'}}
  98. .lds-roller
  99. div
  100. div
  101. div
  102. div
  103. div
  104. div
  105. div