diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-24 16:31:04 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-24 16:31:04 +0530 |
commit | 16cd0e78e9ea6dcb960816db138640d047b89bb7 (patch) | |
tree | 236c6281e519ca124d1f5c662a4efc8433237a70 | |
parent | 93c4b6b9624e5161d2e5f69106e712d6930f693d (diff) |
added check if file exists to prevent 404
-rw-r--r-- | app/templates/job_status.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/templates/job_status.html b/app/templates/job_status.html index 446d46a..19dcaaa 100644 --- a/app/templates/job_status.html +++ b/app/templates/job_status.html @@ -25,8 +25,11 @@ } </style> - <p>A detailed zip file containing this PDF, along with all supporting files (configuration, pictures, protein-ligands e.t.c) has been sent to your email.</p> + <p>A detailed zip file containing the report PDF, along with all supporting files (configuration, pictures, protein-ligands e.t.c) has been sent to your email.</p> +{% endif %} + + {% if model == 'exists' %} <h3>AR Model</h3> <section> @@ -34,16 +37,17 @@ <script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script> <model-viewer src={{AndroidModel}} ios-src={{iOSModel}} ar="" auto-rotate="" camera-controls="" shadow-intensity="1" alt=”3D Model of your Docking Job”></model-viewer> </section> + {% endif %} - + {% if report == 'exists' %} <h3>PDF Report</h3> <section> <iframe src={{PDFReport}} id="report"></iframe> </section> + {% endif %} -{% endif %} <section> <style> |