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
d9fd6e9e
Commit
d9fd6e9e
authored
Dec 16, 2020
by
Øyvind gjesdal
Browse files
true/false not usable in set var, use string value
parent
ab7431aa
Pipeline
#48932
passed with stages
in 1 minute and 33 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
includes/digital_resources.inc
View file @
d9fd6e9e
{
%
if
models
.
dzi
|
length
>
0
%
}
{
%
set
dzi_enabled
=
true
%
}
{
%
el
se
%
}
{
%
set
dzi_enabled
=
false
%
}
{
%
set
dzi_enabled
=
'
true
'
%
}
{
%
se
t
dzi_dr
=
'true'
%
}
{
%
endif
%
}
{
%
if
models
.
digitalresources
|
length
>
0
%
}
{
%
set
dr_enabled
=
true
%
}
{
%
else
%
}
{
%
set
dr_enabled
=
false
%
}
{
%
set
dr_enabled
=
'true'
%
}
{
%
set
dzi_dr
=
'true'
%
}
{
%
endif
%
}
{
%
if
dzi_enabled
%
}
{
%
if
dzi_enabled
==
'true'
%
}
<!--
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
>
...
...
@@ -16,7 +15,7 @@
{
%
endif
%
}
{
%
if
models
.
digitalresources
|
length
>
0
%
}
<
div
data
-
tab
=
"jpeg"
class
=
"{% if not dzi_enabled %}active{% endif %} ui top attached tab segment no-padding"
>
<
div
data
-
tab
=
"jpeg"
class
=
"{% if not dzi_enabled
== 'true'
%}active{% endif %} ui top attached tab segment no-padding"
>
<!--
fotorama
.
css
&
fotorama
.
js
.
-->
<
link
href
=
"https://cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.3/fotorama.css"
rel
=
"stylesheet"
>
...
...
@@ -31,10 +30,10 @@
</
div
>
{
%
endif
%
}
{
%
if
dzi_enabled
&&
dr_enabled
%
}
{
%
if
dzi_enabled
==
'true'
&&
dr_enabled
==
'true'
%
}
<
div
class
=
"ui bottom attached tabular menu dr-tab"
>
<
a
class
=
"item {% if dzi_enabled %}active{% else %}disabled{% endif %}"
data
-
tab
=
"dzi"
>
Zoom
</
a
>
<
a
class
=
"item {% if not dzi_enabled %}active{% endif %}"
data
-
tab
=
"jpeg"
>
Jpeg
</
a
>
<
a
class
=
"item {% if dzi_enabled
== 'true'
%}active{% else %}disabled{% endif %}"
data
-
tab
=
"dzi"
>
Zoom
</
a
>
<
a
class
=
"item {% if not dzi_enabled
== 'true'
%}active{% endif %}"
data
-
tab
=
"jpeg"
>
Jpeg
</
a
>
<
div
id
=
"dzi-control"
class
=
"right menu"
>
...
...
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