access.pug 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. extends ../../layout
  2. block content
  3. script(type="template", id="overleaf-token-access-data")!= StringHelper.stringifyJsonForScript({ postUrl: postUrl, csrfToken: csrfToken})
  4. div(
  5. ng-controller="TokenAccessPageController",
  6. ng-init="post()"
  7. )
  8. .editor.full-size
  9. div
  10. |  
  11. a(href="/project", style="font-size: 2rem; margin-left: 1rem; color: #ddd;")
  12. i.fa.fa-arrow-left
  13. .loading-screen(
  14. ng-show="mode == 'accessAttempt'"
  15. )
  16. .loading-screen-brand-container
  17. .loading-screen-brand()
  18. h3.loading-screen-label.text-center
  19. | #{translate('join_project')}
  20. span(ng-show="accessInFlight == true")
  21. span.loading-screen-ellip .
  22. span.loading-screen-ellip .
  23. span.loading-screen-ellip .
  24. .global-alerts.text-center(ng-cloak)
  25. div(ng-show="accessError", ng-cloak)
  26. br
  27. div(ng-switch="accessError", ng-cloak)
  28. div(ng-switch-when="not_found")
  29. h4(aria-live="assertive")
  30. | Project not found
  31. div(ng-switch-default)
  32. .alert.alert-danger(aria-live="assertive") #{translate('token_access_failure')}
  33. p
  34. a(href="/") #{translate('home')}
  35. .loading-screen(
  36. ng-show="mode == 'v1Import'"
  37. )
  38. .container
  39. .row
  40. .col-sm-8.col-sm-offset-2
  41. h1.text-center
  42. span(ng-if="v1ImportData.status != 'mustLogin'") Overleaf v1 Project
  43. span(ng-if="v1ImportData.status == 'mustLogin'") Please Log In
  44. img.v2-import__img(
  45. src="/img/v1-import/v2-editor.png"
  46. alt="The new V2 editor."
  47. )
  48. div(ng-if="v1ImportData.status == 'cannotImport'")
  49. h2.text-center
  50. | Cannot Access Overleaf v1 Project
  51. p.text-center.row-spaced-small
  52. | Please contact the project owner or
  53. |
  54. a(href="/contact") contact support
  55. |
  56. | for assistance.
  57. div(ng-if="v1ImportData.status == 'mustLogin'")
  58. p.text-center.row-spaced-small
  59. | You will need to log in to access this project.
  60. .row-spaced.text-center
  61. a.btn.btn-primary(
  62. href="/login?redir={{ currentPath() }}"
  63. ) Log In To Access Project
  64. div(ng-if="v1ImportData.status == 'canDownloadZip'")
  65. p.text-center.row-spaced.small
  66. | #[strong() {{ getProjectName() }}] has not yet been moved into
  67. | the new version of Overleaf. This project was created
  68. | anonymously and therefore cannot be automatically imported.
  69. | Please download a zip file of the project and upload that to
  70. | continue editing it. If you would like to delete this project
  71. | after you have made a copy, please contact support.
  72. .row-spaced.text-center
  73. a.btn.btn-primary(ng-href="{{ buildZipDownloadPath(v1ImportData.projectId) }}")
  74. | Download project zip file
  75. block append foot-scripts
  76. script(type="text/javascript", nonce=scriptNonce).
  77. $(document).ready(function () {
  78. setTimeout(function() {
  79. $('.loading-screen-brand').css('height', '20%')
  80. }, 500);
  81. });