created index nominum occurences display and links
This commit is contained in:
@@ -219,6 +219,33 @@ section[role="main-content"]{
|
|||||||
.index{
|
.index{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nominum{
|
||||||
|
header{
|
||||||
|
h1{
|
||||||
|
@include title2black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.occurences{
|
||||||
|
>ul{
|
||||||
|
>li{
|
||||||
|
padding:0 0 1em 0;
|
||||||
|
h3{
|
||||||
|
@include title2black;
|
||||||
|
padding:0 0 0.3em 0;
|
||||||
|
}
|
||||||
|
>ul{
|
||||||
|
>li{
|
||||||
|
padding:0 0 0.3em 0;
|
||||||
|
h4{
|
||||||
|
@include title3black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#edition{
|
#edition{
|
||||||
header{
|
header{
|
||||||
h1{
|
h1{
|
||||||
@@ -314,6 +341,8 @@ section[role="main-content"]{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
footer[role="tools"]{
|
footer[role="tools"]{
|
||||||
$list-item-h: 5.3em;
|
$list-item-h: 5.3em;
|
||||||
|
|||||||
@@ -43,3 +43,11 @@ footer[role="tools"] .row>nav{
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
margin:0;
|
margin:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin title3black {
|
||||||
|
@include fontserif;
|
||||||
|
font-size: 1em;
|
||||||
|
color: $grisfonce;
|
||||||
|
font-weight: 400;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
|||||||
+43
-3
@@ -19,13 +19,32 @@
|
|||||||
v-for="ed in content.occurences"
|
v-for="ed in content.occurences"
|
||||||
:key="ed.item"
|
:key="ed.item"
|
||||||
>
|
>
|
||||||
<h3>{{ ed.item }}</h3>
|
<h3>
|
||||||
<ul>
|
<a
|
||||||
|
:href="'/edition/'+ed.item"
|
||||||
|
:uuid="ed.item"
|
||||||
|
@click.prevent="onclick"
|
||||||
|
@keyup.enter="onclick"
|
||||||
|
>
|
||||||
|
{{ ed.item }}
|
||||||
|
</a>
|
||||||
|
</h3>
|
||||||
|
<ul >
|
||||||
<li
|
<li
|
||||||
v-for="oc in ed.occurences"
|
v-for="oc in ed.occurences"
|
||||||
:key="oc.uuid"
|
:key="oc.uuid"
|
||||||
>
|
>
|
||||||
<h4>{{ oc.title }}</h4>
|
<h4>
|
||||||
|
<a
|
||||||
|
:href="'/edition/'+ed.item+'/'+oc.uuid"
|
||||||
|
:uuid="oc.uuid"
|
||||||
|
:eduuid="ed.item"
|
||||||
|
@click.prevent="onclick"
|
||||||
|
@keyup.enter="onclick"
|
||||||
|
>
|
||||||
|
{{ oc.title }}
|
||||||
|
</a>
|
||||||
|
</h4>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -62,6 +81,27 @@ export default {
|
|||||||
console.warn('Issue with nominum', error)
|
console.warn('Issue with nominum', error)
|
||||||
Promise.reject(error)
|
Promise.reject(error)
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
onclick (e) {
|
||||||
|
console.log('clicked on nominum text occurence', e)
|
||||||
|
if (e.target.getAttribute('eduuid')) {
|
||||||
|
this.$router.push({
|
||||||
|
name: `editiontext`,
|
||||||
|
params: {
|
||||||
|
id: e.target.getAttribute('eduuid'),
|
||||||
|
textid: e.target.getAttribute('uuid')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$router.push({
|
||||||
|
name: `edition`,
|
||||||
|
params: {
|
||||||
|
id: e.target.getAttribute('uuid')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user