Commit a00f6597 authored by Øyvind gjesdal's avatar Øyvind gjesdal
Browse files

move dzi check to variable

parent ef130a05
Pipeline #48884 passed with stages
in 1 minute and 21 seconds
{% if not models.dzi| null %}
{% if models.dzi | count > 0 %}
{% set dzi_enabled = true %}
{% else %}
{% set dzi_enabled = false %}
{% endif %}
{% if dzi_enabled %}
<!-- Contains the OpenSeadragon viewer -->
<div class="ui top attached tab segment no-padding active" data-tab="dzi">
<div id="dzi1" style="height:50rem; background-color: black;"></div>
......@@ -22,7 +26,7 @@
</div>
{% endif %}
{% if not models.dzi| null && not models.digitalresources| null %}
{% if dzi_enabled && not models.digitalresources| null %}
<div class="ui bottom attached tabular menu dr-tab">
<a class="item {% if not models.dzi| null %}active{% else %}disabled{% endif %}" data-tab="dzi">Zoom</a>
<a class="item {% if models.dzi| null %}active{% endif %}" data-tab="jpeg">Jpeg</a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment