entite source liens display fix #2200
This commit is contained in:
parent
759376983a
commit
c258593341
@ -210,6 +210,15 @@ body{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section.entite{
|
||||||
|
.sources{
|
||||||
|
.liens{
|
||||||
|
a{
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// PUISSANCE D'AGIR
|
// PUISSANCE D'AGIR
|
||||||
ul.besoins{
|
ul.besoins{
|
||||||
li.besoin{
|
li.besoin{
|
||||||
|
@ -41,94 +41,102 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<section class="action">
|
<section class="entite">
|
||||||
<label v-if="ct_entite">{{ ct_entite.field_action.description }}</label>
|
|
||||||
<p>{{ entite.action }}</p>
|
<section class="action">
|
||||||
</section>
|
<label v-if="ct_entite">{{ ct_entite.field_action.description }}</label>
|
||||||
<section class="menace-maintien">
|
<p>{{ entite.action }}</p>
|
||||||
<label v-if="ct_entite">{{ field_menace_maintien_label }}</label>
|
</section>
|
||||||
<p>{{ entite.menacemaintien }}</p>
|
<section class="menace-maintien">
|
||||||
</section>
|
<label v-if="ct_entite">{{ field_menace_maintien_label }}</label>
|
||||||
<!-- SOURCES (experiences vecues) -->
|
<p>{{ entite.menacemaintien }}</p>
|
||||||
<section
|
</section>
|
||||||
v-if="entite.sources.length"
|
<!-- SOURCES (experiences vecues) -->
|
||||||
class="sources multiple">
|
|
||||||
<section
|
<section
|
||||||
v-for="(source, index) in entite.sources"
|
v-if="entite.sources.length"
|
||||||
:key="index"
|
class="sources multiple">
|
||||||
class="source">
|
<section
|
||||||
<section class="description">
|
v-for="(source, index) in entite.sources"
|
||||||
<label v-if="ct_entite"> {{ field_sources_label }}</label>
|
:key="index"
|
||||||
<div v-html="source.description"/>
|
class="source">
|
||||||
</section>
|
<section class="description">
|
||||||
|
<label v-if="ct_entite"> {{ field_sources_label }}</label>
|
||||||
|
<div v-html="source.description"/>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
v-if="source.images.length"
|
v-if="source.images.length"
|
||||||
class="images">
|
class="images">
|
||||||
<figure
|
<figure
|
||||||
v-for="(image, j) in source.images"
|
v-for="(image, j) in source.images"
|
||||||
:key="j">
|
:key="j">
|
||||||
<img :src="image.url" :alt="image.alt"/>
|
<img :src="image.url" :alt="image.alt"/>
|
||||||
</figure>
|
</figure>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
v-if="source.videos.length"
|
v-if="source.videos.length"
|
||||||
class="video multiple">
|
class="video multiple">
|
||||||
<vue-plyr
|
<vue-plyr
|
||||||
v-for="(video,v) in source.videos"
|
v-for="(video,v) in source.videos"
|
||||||
:key="v">
|
:key="v">
|
||||||
<div class="plyr__video-embed">
|
<div class="plyr__video-embed">
|
||||||
<!-- TODO fix vimeo embed url -->
|
<!-- TODO fix vimeo embed url -->
|
||||||
<iframe
|
<iframe
|
||||||
:src="video.url"
|
:src="video.url"
|
||||||
allowfullscreen
|
allowfullscreen
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
</vue-plyr>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section
|
|
||||||
v-if="source.audios.length"
|
|
||||||
class="audio multiple">
|
|
||||||
<div
|
|
||||||
v-for="(audio,a) in source.audios"
|
|
||||||
:key="a">
|
|
||||||
<label v-if="audio.description">{{ audio.description }}</label>
|
|
||||||
<label v-else>{{ audio.file.filename }}</label>
|
|
||||||
<vue-plyr>
|
|
||||||
<audio>
|
|
||||||
<source :src="audio.file.url" :type="audio.file.filemime" />
|
|
||||||
</audio>
|
|
||||||
</vue-plyr>
|
</vue-plyr>
|
||||||
|
</section>
|
||||||
|
|
||||||
</div>
|
<section
|
||||||
</section>
|
v-if="source.audios.length"
|
||||||
|
class="audio multiple">
|
||||||
|
<div
|
||||||
|
v-for="(audio,a) in source.audios"
|
||||||
|
:key="a">
|
||||||
|
<label v-if="audio.description">{{ audio.description }}</label>
|
||||||
|
<label v-else>{{ audio.file.filename }}</label>
|
||||||
|
<vue-plyr>
|
||||||
|
<audio>
|
||||||
|
<source :src="audio.file.url" :type="audio.file.filemime" />
|
||||||
|
</audio>
|
||||||
|
</vue-plyr>
|
||||||
|
|
||||||
<section
|
</div>
|
||||||
v-if="source.liens.length"
|
</section>
|
||||||
class="liens multiple">
|
|
||||||
<a
|
<section
|
||||||
v-for="(lien,l) in source.liens"
|
v-if="source.liens.length"
|
||||||
:key="l"
|
class="liens multiple">
|
||||||
:href="lien.url">
|
<ul>
|
||||||
{{ lien.title }}
|
<li
|
||||||
</a>
|
v-for="(lien,l) in source.liens"
|
||||||
</section>
|
:key="l">
|
||||||
|
<a
|
||||||
|
:href="lien.url">
|
||||||
|
{{ lien.title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<section
|
<section
|
||||||
v-if="source.documents.length"
|
v-if="source.documents.length"
|
||||||
class="documents multiple">
|
class="documents multiple">
|
||||||
<a
|
<a
|
||||||
v-for="(doc,d) in source.documents"
|
v-for="(doc,d) in source.documents"
|
||||||
:key="d"
|
:key="d"
|
||||||
:href="doc.file.url">
|
:href="doc.file.url">
|
||||||
<template v-if="doc.description">{{ doc.description }}</template>
|
<template v-if="doc.description">{{ doc.description }}</template>
|
||||||
<template v-else>{{ doc.file.url }}</template>
|
<template v-else>{{ doc.file.url }}</template>
|
||||||
</a>
|
</a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user