mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-05 17:33:15 +00:00
Merge pull request #1348 from sharelatex/as-tweak-import-status-page
Tweak import status page GitOrigin-RevId: df30c354dfeb27828225f535e3bfab782212ee60
This commit is contained in:
parent
12a2d71ac9
commit
87b983ec6b
1 changed files with 27 additions and 26 deletions
|
@ -21,32 +21,33 @@ block content
|
|||
a.btn.btn-primary(
|
||||
href="/login?redir=" + loginRedirect
|
||||
) Log In To Move Project
|
||||
else if hasOwner
|
||||
p.text-center.row-spaced-small
|
||||
| #[strong #{name}] has not yet been moved into the new version of
|
||||
| Overleaf. You will need to move it in order to continue working
|
||||
| on it. It should only take a few seconds.
|
||||
|
||||
form(
|
||||
async-form="v2Import"
|
||||
name="v2ImportForm"
|
||||
action="/overleaf/project/"+ projectId + "/import"
|
||||
method="POST"
|
||||
ng-cloak
|
||||
)
|
||||
input(name='_csrf', type='hidden', value=csrfToken)
|
||||
form-messages(for="v2ImportForm")
|
||||
input.row-spaced.btn.btn-primary.text-center.center-block(
|
||||
type="submit"
|
||||
value="Move Project and Continue"
|
||||
ng-disabled="v2ImportForm.inflight || v2ImportForm.response.success"
|
||||
)
|
||||
else
|
||||
p.text-center.row-spaced.small
|
||||
| #[strong #{name}] has not yet been moved into the new version of
|
||||
| Overleaf. This project was created anonymously and therefore
|
||||
| cannot be automatically imported. Please download a zip file of
|
||||
| the project and upload that to continue editing it.
|
||||
if hasOwner
|
||||
p.text-center.row-spaced-small
|
||||
| #[strong #{name}] has not yet been moved into the new version of
|
||||
| Overleaf. You will need to move it in order to continue working
|
||||
| on it. It should only take a few seconds.
|
||||
|
||||
form(
|
||||
async-form="v2Import"
|
||||
name="v2ImportForm"
|
||||
action="/overleaf/project/"+ projectId + "/import"
|
||||
method="POST"
|
||||
ng-cloak
|
||||
)
|
||||
input(name='_csrf', type='hidden', value=csrfToken)
|
||||
form-messages(for="v2ImportForm")
|
||||
input.row-spaced.btn.btn-primary.text-center.center-block(
|
||||
type="submit"
|
||||
ng-value="v2ImportForm.inflight || v2ImportForm.response.success ? 'Moving to v2...' : 'Move Project and Continue'"
|
||||
ng-disabled="v2ImportForm.inflight || v2ImportForm.response.success"
|
||||
)
|
||||
else
|
||||
p.text-center.row-spaced.small
|
||||
| #[strong #{name}] has not yet been moved into the new version of
|
||||
| Overleaf. This project was created anonymously and therefore
|
||||
| cannot be automatically imported. Please download a zip file of
|
||||
| the project and upload that to continue editing it.
|
||||
|
||||
form(
|
||||
async-form="v2ZipDownload"
|
||||
|
@ -58,7 +59,7 @@ block content
|
|||
form-messages(form="v2ZipDownloadForm")
|
||||
input.row-spaced.btn.btn-primary.text-center.center-block(
|
||||
type="submit"
|
||||
value="Download project zip file"
|
||||
ng-value="v2ZipDownloadForm.inflight || v2ZipDownloadForm.success ? 'Downloading zip file...' : 'Download project zip file'"
|
||||
ng-disabled="v2ZipDownloadForm.inflight || v2ZipDownloadForm.success"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue