v2-import.pug 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. extends ../layout
  2. block vars
  3. - metadata = { viewport: true }
  4. block content
  5. main.content
  6. .container
  7. .row
  8. .col-sm-8.col-sm-offset-2
  9. h1.text-center Move project to Overleaf v2
  10. img.v2-import__img(
  11. src="/img/v1-import/v2-editor.png"
  12. alt="The new V2 editor."
  13. )
  14. if loginRedirect
  15. p.text-center.row-spaced-small
  16. | This project has not yet been moved into the new version of
  17. | Overleaf. You will need to log in and move it in order to
  18. | continue working on it.
  19. .row-spaced.text-center
  20. a.btn.btn-primary(
  21. href="/login?redir=" + loginRedirect
  22. ) Log In To Move Project
  23. else
  24. if hasOwner
  25. p.text-center.row-spaced-small
  26. | #[strong(ng-non-bindable) #{name}] has not yet been moved into
  27. | the new version of Overleaf. You will need to move it in order
  28. | to continue working on it. It should only take a few seconds.
  29. form(
  30. async-form="v2Import"
  31. name="v2ImportForm"
  32. action="/overleaf/project/"+ projectId + "/import"
  33. method="POST"
  34. ng-cloak
  35. )
  36. input(name='_csrf', type='hidden', value=csrfToken)
  37. form-messages(for="v2ImportForm")
  38. input.row-spaced.btn.btn-primary.text-center.center-block(
  39. type="submit"
  40. ng-value="v2ImportForm.inflight || v2ImportForm.response.success ? 'Moving to v2...' : 'Move Project and Continue'"
  41. ng-disabled="v2ImportForm.inflight || v2ImportForm.response.success"
  42. )
  43. .row-spaced-small.text-center
  44. a(href="/overleaf/project/" + projectId + "/download/zip") Download project zip file
  45. else
  46. p.text-center.row-spaced.small
  47. | #[strong(ng-non-bindable) #{name}] has not yet been moved into
  48. | the new version of Overleaf. This project was created
  49. | anonymously and therefore cannot be automatically imported.
  50. | Please download a zip file of the project and upload that to
  51. | continue editing it. If you would like to delete this project
  52. | after you have made a copy, please contact support.
  53. .row-spaced.text-center
  54. a.btn.btn-primary(href="/overleaf/project/" + projectId + "/download/zip") Download project zip file
  55. .row-spaced.text-center
  56. if hasAssignment
  57. p
  58. | #[span.fa.fa-exclamation-triangle]
  59. | This project is an assignment, and the assignment toolkit is
  60. | no longer supported in Overleaf v2. When you move it to
  61. | Overleaf v2, it will become a normal project.
  62. | #[a(href="https://www.overleaf.com/learn/how-to/Overleaf_v2_FAQ#assignment-tools") Please see our FAQ]
  63. | for more information or contact your instructor if you haven't
  64. | already submitted it.
  65. else if brandInfo == 'f1000'
  66. p
  67. | #[span.fa.fa-exclamation-triangle]
  68. | This project is an F1000Research article, and our integration
  69. | with F1000Research has changed in Overleaf v2.
  70. | #[a(href="https://www.overleaf.com/learn/how-to/Overleaf_v2_FAQ#f1000research") Find out more about moving to Overleaf v2]
  71. else if brandInfo == 'wellcome'
  72. p
  73. | #[span.fa.fa-exclamation-triangle]
  74. | This project is an Wellcome Open Research article, and our
  75. | integration with Wellcome Open Research has changed in
  76. | Overleaf v2.
  77. | #[a(href="https://www.overleaf.com/learn/how-to/Overleaf_v2_FAQ#f1000research") Find out more about moving to Overleaf v2]
  78. else
  79. a(href="https://www.overleaf.com/learn/how-to/Overleaf_v2_FAQ")
  80. | Find out more about moving to Overleaf v2