layouts.jade 3.9 KB

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