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

use var for or (strange parens in haanga)

parent f8c8bd1a
Pipeline #48930 passed with stages
in 1 minute and 30 seconds
...@@ -224,20 +224,17 @@ ...@@ -224,20 +224,17 @@
{% if models.events | length > 0 %} {% if models.events | length > 0 %}
{% set events_enabled = 'true' %} {% set events_enabled = 'true' %}
{% else %} {% set coll_events = 'true' %}
{% set events_enabled = 'false' %}
{% endif %} {% endif %}
{% if models.collections | length > 0 %} {% if models.collections | length > 0 %}
{% set collections_enabled = 'true' %} {% set collections_enabled = 'true' %}
{% else %} {% set coll_events = 'true' %}
{% set collections_enabled = 'false' %}
{% endif %} {% endif %}
<!-- KNYTTET TIL... --> <!-- KNYTTET TIL... -->
{# events_enabled #}
<div class="twelve wide column lightgrey"> <div class="twelve wide column lightgrey">
{% if events_enabled == 'true' || collections_enabled == 'true' %} {% if coll_events == 'true' %}
<!-- COLLECTIONS --> <!-- COLLECTIONS -->
{% if collections_enabled == 'true' %} {% if collections_enabled == 'true' %}
<span class="header">Knyttet til følgende samlinger:</span> <span class="header">Knyttet til følgende samlinger:</span>
......
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