access.pug 3.1 KB

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