added check if file exists to prevent 404

This commit is contained in:
Navan Chauhan 2020-09-24 16:31:04 +05:30
parent 93c4b6b962
commit 16cd0e78e9
1 changed files with 7 additions and 3 deletions

View File

@ -25,8 +25,11 @@
} }
</style> </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> <h3>AR Model</h3>
<section> <section>
@ -34,17 +37,18 @@
<script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script> <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> <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> </section>
{% endif %}
{% if report == 'exists' %}
<h3>PDF Report</h3> <h3>PDF Report</h3>
<section> <section>
<iframe src={{PDFReport}} id="report"></iframe> <iframe src={{PDFReport}} id="report"></iframe>
</section> </section>
{% endif %} {% endif %}
<section> <section>
<style> <style>
#growth{ #growth{