layouts.jade 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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="/wekan-favicon.png")
  11. link(rel="apple-touch-icon" href="/wekan-favicon.png")
  12. link(rel="mask-icon" href="/wekan-150.svg")
  13. link(rel="manifest" href="/wekan-manifest.json")
  14. template(name="userFormsLayout")
  15. section.auth-layout
  16. h1.at-form-landing-logo
  17. img(src="{{pathFor '/wekan-logo.png'}}" alt="Wekan")
  18. section.auth-dialog
  19. +Template.dynamic(template=content)
  20. if isCas
  21. .at-form
  22. button#cas(class='at-btn submit' type='submit') {{casSignInLabel}}
  23. div.at-form-lang
  24. select.select-lang.js-userform-set-language
  25. each languages
  26. if isCurrentLanguage
  27. option(value="{{tag}}" selected="selected") {{name}}
  28. else
  29. option(value="{{tag}}") {{name}}
  30. template(name="defaultLayout")
  31. +header
  32. #content
  33. +Template.dynamic(template=content)
  34. if (Modal.isOpen)
  35. #modal
  36. .overlay
  37. if (Modal.isWide)
  38. .modal-content-wide.modal-container
  39. a.modal-close-btn.js-close-modal
  40. i.fa.fa-times-thin
  41. +Template.dynamic(template=Modal.getHeaderName)
  42. +Template.dynamic(template=Modal.getTemplateName)
  43. else
  44. .modal-content.modal-container
  45. a.modal-close-btn.js-close-modal
  46. i.fa.fa-times-thin
  47. +Template.dynamic(template=Modal.getHeaderName)
  48. +Template.dynamic(template=Modal.getTemplateName)
  49. template(name="notFound")
  50. +message(label='page-not-found')
  51. template(name="message")
  52. .big-message.quiet(class=color)
  53. h1 {{_ label}}
  54. unless currentUser
  55. with(pathFor route='atSignIn')
  56. p {{{_ 'page-maybe-private' this}}}