#2091 index œuvres

This commit is contained in:
2023-06-19 09:40:24 +02:00
parent 42d3fae00a
commit 7192d2f12d
5 changed files with 49 additions and 16 deletions
+8 -1
View File
@@ -618,6 +618,13 @@ section[role="main-content"]{
color: $bleuroi; color: $bleuroi;
} }
} }
>nav{
aside.links{
position: absolute;
bottom: 0;
}
}
} }
#edition{ #edition{
@@ -1268,7 +1275,7 @@ section[role="main-content"]{
} }
} }
>nav{ >nav{
aside.expression-links{ aside.links{
position: absolute; position: absolute;
bottom: 0; bottom: 0;
} }
+1 -1
View File
@@ -145,7 +145,7 @@
</ul> </ul>
</template> </template>
<template v-else #nav> <template v-else #nav>
<aside class="expression-links"> <aside class="links">
<p> <p>
Permalien:<br><a :href="`${item.url}`">{{ item.url }}</a> Permalien:<br><a :href="`${item.url}`">{{ item.url }}</a>
</p> </p>
+11
View File
@@ -31,6 +31,17 @@
<!-- default slot --> <!-- default slot -->
<IndexItemOcurrences v-if="content" :content="content" /> <IndexItemOcurrences v-if="content" :content="content" />
<template #nav>
<aside class="links">
<p>
Permalien:<br><a :href="`${content.url}`">{{ content.url }}</a>
</p>
<p>
JSON:<br><a :href="`${apipath}${content.path}${content.uuid}`">{{ apipath }}{{ content.path }}{{ content.uuid }}</a>
</p>
</aside>
</template>
</MainContentLayout> </MainContentLayout>
</template> </template>
+11 -1
View File
@@ -38,7 +38,17 @@
<!-- default slot --> <!-- default slot -->
<IndexItemOcurrences v-if="content" :content="content" /> <IndexItemOcurrences v-if="content" :content="content" />
<template v-if="content" v-slot:nav /> <template #nav>
<aside class="links">
<p>
Permalien:<br><a :href="`${content.url}`">{{ content.url }}</a>
</p>
<p>
JSON:<br><a :href="`${apipath}${content.path}${content.uuid}`">{{ apipath }}{{ content.path }}{{ content.uuid }}</a>
</p>
</aside>
</template>
</MainContentLayout> </MainContentLayout>
</template> </template>
+18 -13
View File
@@ -6,22 +6,16 @@
<template v-if="content" v-slot:header> <template v-if="content" v-slot:header>
<h1 v-html="content.title" /> <h1 v-html="content.title" />
<section v-if="content.author.length" class="authors"> <h2 v-html="content.rubrique" />
<ul> <p><em>{{ content.type }}</em></p>
<li v-for="author in content.author" :key="author.uuid"> <p v-if="content.location"><span class="label">Adresse :</span> {{ content.location }}</p>
<router-link <p v-if="content.description">{{ content.description }}</p>
:to="{ name:'nominum', params: { id: author.uuid }}"
>
{{ author.name }}
</router-link>
</li> <section v-if="content.notes && content.notes.length" class="notes">
</ul> <h3>Notes</h3>
</section>
<section class="notes">
<div v-for="(note, i) in content.note" :key="i" class="note" v-html="note" /> <div v-for="(note, i) in content.note" :key="i" class="note" v-html="note" />
</section> </section>
<section v-if="content.autorities.length" class="autorities"> <section v-if="content.autorities && content.autorities.length" class="autorities">
<h3>Autorities</h3> <h3>Autorities</h3>
<ul> <ul>
<li v-for="(aut, i) in content.autorities" :key="i"> <li v-for="(aut, i) in content.autorities" :key="i">
@@ -32,11 +26,22 @@
</li> </li>
</ul> </ul>
</section> </section>
</template> </template>
<!-- default slot --> <!-- default slot -->
<IndexItemOcurrences v-if="content" :content="content" /> <IndexItemOcurrences v-if="content" :content="content" />
<template #nav>
<aside class="links">
<p>
Permalien:<br><a :href="`${content.url}`">{{ content.url }}</a>
</p>
<p>
JSON:<br><a :href="`${apipath}${content.path}${content.uuid}`">{{ apipath }}{{ content.path }}{{ content.uuid }}</a>
</p>
</aside>
</template>
</MainContentLayout> </MainContentLayout>
</template> </template>