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

set var = true brukes som (var) av haanga, bruk string 'true' istedenfor

parent 51d3e32b
Pipeline #48929 passed with stages
in 1 minute and 24 seconds
...@@ -222,32 +222,30 @@ ...@@ -222,32 +222,30 @@
{%endif%} {%endif%}
</div> </div>
{% set events_enabled = 'test' %}
{% if models.events | length > 0 %} {% if models.events | length > 0 %}
{# set events_enabled = true #} {% set events_enabled = 'true' %}
{% else %} {% else %}
{# set events_enabled = false #} {% 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 %} {% else %}
{% set events_enabled = 'test2' %} {% set collections_enabled = 'false' %}
{% set collections_enabled = false %}
{% endif %} {% endif %}
<!-- KNYTTET TIL... --> <!-- KNYTTET TIL... -->
{# events_enabled #} {# events_enabled #}
<div class="twelve wide column lightgrey"> <div class="twelve wide column lightgrey">
{% if events_enabled || collections_enabled %} {% if events_enabled == 'true' || collections_enabled == 'true' %}
<!-- COLLECTIONS --> <!-- COLLECTIONS -->
{% if collections_enabled %} {% if collections_enabled == 'true' %}
<span class="header">Knyttet til følgende samlinger:</span> <span class="header">Knyttet til følgende samlinger:</span>
{% include "../../includes/collections.inc" %} {% include "../../includes/collections.inc" %}
<br /> <br />
{% endif %} {% endif %}
<!-- EVENTS --> <!-- EVENTS -->
{% if events_enabled %} {% if events_enabled == 'true' %}
<span class="header">Knyttet til følgende hendelser:</span> <span class="header">Knyttet til følgende hendelser:</span>
{%include "../../includes/events.inc"%} {%include "../../includes/events.inc"%}
<br /> <br />
......
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