We are currently migrating all git repositories to new storage. In the unlikely event that you attempt to write to your git repo at the exact time it is being moved, you will receive a message about your repository being write protected.

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 @@
{%endif%}
</div>
{% set events_enabled = 'test' %}
{% if models.events | length > 0 %}
{# set events_enabled = true #}
{% set events_enabled = 'true' %}
{% else %}
{# set events_enabled = false #}
{% set events_enabled = 'false' %}
{% endif %}
{% if models.collections | length > 0 %}
{% set collections_enabled = true %}
{% set collections_enabled = 'true' %}
{% else %}
{% set events_enabled = 'test2' %}
{% set collections_enabled = false %}
{% set collections_enabled = 'false' %}
{% endif %}
<!-- KNYTTET TIL... -->
{# events_enabled #}
<div class="twelve wide column lightgrey">
{% if events_enabled || collections_enabled %}
{% if events_enabled == 'true' || collections_enabled == 'true' %}
<!-- COLLECTIONS -->
{% if collections_enabled %}
{% if collections_enabled == 'true' %}
<span class="header">Knyttet til følgende samlinger:</span>
{% include "../../includes/collections.inc" %}
<br />
{% endif %}
<!-- EVENTS -->
{% if events_enabled %}
{% if events_enabled == 'true' %}
<span class="header">Knyttet til følgende hendelser:</span>
{%include "../../includes/events.inc"%}
<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