Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
uib-ub
Spesialsamlingene
admin components
Commits
43d9bf13
Commit
43d9bf13
authored
Dec 16, 2020
by
Øyvind gjesdal
Browse files
bruk variabler for sammensatt, php feiler og models.collection | length faller ut
parent
83d4cb9a
Pipeline
#48919
passed with stages
in 1 minute and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
types/crm__E22_Man-Made_Object/html.template
View file @
43d9bf13
...
@@ -221,18 +221,29 @@
...
@@ -221,18 +221,29 @@
</p>
</p>
{%endif%}
{%endif%}
</div>
</div>
{% if models.events | length > 0 %}
{% set events_enabled = true %}
{% else %}
{% set events_enabled = false %}
{% endif %}
{% if models.collections | length > 0 %}
{% set collections_enabled = true %}
{% else %}
{% set collections_enabled = false %}
{% endif %}
<!-- KNYTTET TIL... -->
<!-- KNYTTET TIL... -->
<div
class=
"twelve wide column lightgrey"
>
<div
class=
"twelve wide column lightgrey"
>
{% if
(models.events| length > 0) || models.collection | length > 0
%}
{% if
events_enabled || models_enabled
%}
<!-- COLLECTIONS -->
<!-- COLLECTIONS -->
{% if
models.
collections
|length > 0
%}
{% if collections
_enabled
%}
<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
models.events| length > 0
%}
{% if
events_enabled
%}
<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
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment