[terms] allow paragraphs

This commit is contained in:
Avris 2021-09-07 22:35:40 +02:00
parent 709e348b07
commit c915896e73
1 changed files with 11 additions and 8 deletions

View File

@ -1,13 +1,16 @@
<template> <template>
<div> <div>
<p> <p v-for="(p, i) in term.definition.split('\n\n')">
<template v-if="i === 0">
<span v-if="term.key && $isGranted('terms')" class="badge bg-primary text-white"> <span v-if="term.key && $isGranted('terms')" class="badge bg-primary text-white">
<T>sources.submit.key</T>: <T>sources.submit.key</T>:
{{term.key}} {{term.key}}
</span> </span>
<strong><LinkedTextMultiple :texts="term.term" noicons/></strong> <strong><LinkedTextMultiple :texts="term.term" noicons/></strong>
<span v-if="term.original.length">(<LinkedTextMultiple :texts="term.original" glue="; " noicons/>)</span> <span v-if="term.original.length">(<LinkedTextMultiple :texts="term.original" glue="; " noicons/>)</span>
<LinkedText :text="term.definition" noicons/>
</template>
<LinkedText :text="p" noicons/>
</p> </p>
<ul class="list-inline"> <ul class="list-inline">