show_image.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!doctype html>
  2. <head>
  3. <title>Hello from Flask</title>
  4. <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}"/>
  5. </head>
  6. <body>
  7. <div class="split left">
  8. <div class="header_centered">
  9. <h1>Drawing</h1>
  10. </div>
  11. <div class="centered">
  12. {% if filename %}
  13. <img src="{{ url_for('send_file', filename=filename) }}"/>
  14. {% else %}
  15. <h1>no image for whatever reason</h1>
  16. {% endif %}
  17. </div>
  18. </div>
  19. <div class="split right">
  20. <div class="top">
  21. <div style="text-indent:50px;">
  22. <h1>Extracted Tolerances</h1>
  23. <p>Maße: {{ dims }} </p>
  24. <p><a href="http://localhost:5000/"> Upload another drawing </a></p>
  25. </div>
  26. </div>
  27. <div class="bottom">
  28. <div style="text-indent:50px;">
  29. <h1>Additional Requirements:</h1>
  30. <table>
  31. {% for k in isos %}
  32. <tr>
  33. <td><a href="path/doc.pdf">My Resume</a> {{ k }}</td>
  34. </tr>
  35. {% endfor %}
  36. </table>
  37. </div>
  38. </div>
  39. </div>
  40. </body>
  41. <!--<img src="{{ url_for('send_file', filename=filename) }}" type="application/pdf" /-->