add config option PREVIEW_ORIGINALS to hide original iframes in snapshot detail pages

This commit is contained in:
Nick Sweeting
2022-05-09 19:31:41 -07:00
parent e83132c24e
commit 8ebf3e2f93
3 changed files with 5 additions and 0 deletions

View File

@@ -414,6 +414,7 @@
</div>
</div>
{% endif %}
{% if PREVIEW_ORIGINALS %}
<div class="col-lg-2">
<div class="card">
<iframe class="card-img-top" src="{{url}}" sandbox="allow-same-origin allow-top-navigation-by-user-activation allow-scripts allow-forms" scrolling="no" loading="lazy" referrerpolicy="no-referrer"></iframe>
@@ -427,6 +428,7 @@
</div>
</div>
</div>
{{% endif %}}
<div class="col-lg-2">
<div class="card">
<iframe class="card-img-top" src="{{headers_path}}" sandbox="allow-same-origin allow-top-navigation-by-user-activation allow-scripts allow-forms" scrolling="no" loading="lazy"></iframe>