added date field to entite display #2294
This commit is contained in:
parent
9c5db8527d
commit
d813759ad7
@ -252,9 +252,19 @@ body{
|
|||||||
|
|
||||||
section.entite{
|
section.entite{
|
||||||
.sources{
|
.sources{
|
||||||
.liens{
|
padding-top: 1em;
|
||||||
a{
|
.source{
|
||||||
text-decoration: underline;
|
padding-top: 0.5em;
|
||||||
|
div.date{
|
||||||
|
display: block;
|
||||||
|
font-weight: 100;
|
||||||
|
font-size: 0.882em;
|
||||||
|
padding: 0 0 0.5em 0;
|
||||||
|
}
|
||||||
|
.liens{
|
||||||
|
a{
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,86 +55,88 @@ export default {
|
|||||||
<section
|
<section
|
||||||
v-if="entite.sources.length"
|
v-if="entite.sources.length"
|
||||||
class="sources multiple">
|
class="sources multiple">
|
||||||
|
<h5>Experience(s) Vécue(s)</h5>
|
||||||
<section
|
<section
|
||||||
v-for="(source, index) in entite.sources"
|
v-for="(source, index) in entite.sources"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="source">
|
class="source">
|
||||||
|
<div class="date">{{ source.date.start }}</div>
|
||||||
<section class="description">
|
<section class="description">
|
||||||
<label v-if="ct_entite"> {{ field_sources_label }}</label>
|
<label v-if="ct_entite"> {{ field_sources_label }}</label>
|
||||||
<div v-html="source.description"/>
|
<div v-html="source.description"/>
|
||||||
</section>
|
</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">
|
<section
|
||||||
<div
|
v-if="source.liens.length"
|
||||||
v-for="(audio,a) in source.audios"
|
class="liens multiple">
|
||||||
:key="a">
|
<ul>
|
||||||
<label v-if="audio.description">{{ audio.description }}</label>
|
<li
|
||||||
<label v-else>{{ audio.file.filename }}</label>
|
v-for="(lien,l) in source.liens"
|
||||||
<vue-plyr>
|
:key="l">
|
||||||
<audio>
|
|
||||||
<source :src="audio.file.url" :type="audio.file.filemime" />
|
|
||||||
</audio>
|
|
||||||
</vue-plyr>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section
|
|
||||||
v-if="source.liens.length"
|
|
||||||
class="liens multiple">
|
|
||||||
<ul>
|
|
||||||
<li
|
|
||||||
v-for="(lien,l) in source.liens"
|
|
||||||
:key="l">
|
|
||||||
<a
|
|
||||||
:href="lien.url">
|
|
||||||
{{ lien.title }}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
|
||||||
<section
|
|
||||||
v-if="source.documents.length"
|
|
||||||
class="documents multiple">
|
|
||||||
<a
|
<a
|
||||||
v-for="(doc,d) in source.documents"
|
:href="lien.url">
|
||||||
:key="d"
|
{{ lien.title }}
|
||||||
:href="doc.file.url">
|
</a>
|
||||||
<template v-if="doc.description">{{ doc.description }}</template>
|
</li>
|
||||||
<template v-else>{{ doc.file.url }}</template>
|
</ul>
|
||||||
</a>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
<section
|
||||||
|
v-if="source.documents.length"
|
||||||
|
class="documents multiple">
|
||||||
|
<a
|
||||||
|
v-for="(doc,d) in source.documents"
|
||||||
|
:key="d"
|
||||||
|
:href="doc.file.url">
|
||||||
|
<template v-if="doc.description">{{ doc.description }}</template>
|
||||||
|
<template v-else>{{ doc.file.url }}</template>
|
||||||
|
</a>
|
||||||
|
</section>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user