2021-11-13 23:32:25 +01:00
|
|
|
{% if not file.htmlPreviewFile is empty %}
|
|
|
|
{{ file.htmlPreviewFile|raw }}
|
|
|
|
{% else %}
|
2021-07-09 23:42:38 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2021-10-20 14:17:13 +02:00
|
|
|
<title>{{ mesh.label }} / {{ file.name }}</title>
|
2021-07-09 23:42:38 +02:00
|
|
|
{{ encore_entry_link_tags('viewer') }}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2021-11-23 22:48:55 +01:00
|
|
|
<div id="mesh-viewer" data-file="{{ path('mesh_download', {stlMesh: mesh.id, key: key, _domain: _domain}) }}"></div>
|
2021-07-09 23:42:38 +02:00
|
|
|
|
|
|
|
<script src="{{ asset('stl_viewer/stl_viewer.min.js') }}"></script>
|
|
|
|
{{ encore_entry_script_tags('viewer') }}
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
2021-11-13 23:32:25 +01:00
|
|
|
{% endif %}
|