Edit iframe loading animations

This commit is contained in:
Paul Nicoué 2022-08-01 16:59:46 +02:00
parent e0cb8d46f4
commit 39466006da
8 changed files with 121 additions and 95 deletions

View file

@ -17,7 +17,7 @@ fields:
en: URL
fr: URL
type: url
width: 3/4
width: 2/4
external_link:
label:
en: External link
@ -31,11 +31,27 @@ fields:
en: 'Yes'
fr: Oui
width: 1/4
background_color:
when:
external_link: false
label:
en: Background color
fr: Couleur de fond
type: select
options:
feldgrau: Feldgrau
white:
en: White
fr: Blanc
default: feldgrau
width: 1/4
columns:
url:
width: 3/4
width: 2/4
external_link:
width: 1/4
background_color:
width: 1/4

View file

@ -21,7 +21,7 @@
{% for exhibition in exhibitions %}
<li class="sidebar__nav-item">
{% if exhibition.external_link == 'false' %}
<a class="sidebar__nav-link sidebar__nav-link--internal" href="{{ exhibition.url }}" target="exhibition">{{ exhibition.title }}</a>
<a class="sidebar__nav-link sidebar__nav-link--internal" href="{{ exhibition.url }}" target="exhibition" data-background="{{ exhibition.background_color }}">{{ exhibition.title }}</a>
{% else %}
<a class="sidebar__nav-link sidebar__nav-link--external" href="{{ exhibition.url }}" target="_blank">{{ exhibition.title }}</a>
{% endif %}