[terms] allow paragraphs
This commit is contained in:
parent
709e348b07
commit
c915896e73
|
@ -1,13 +1,16 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p v-for="(p, i) in term.definition.split('\n\n')">
|
||||||
<span v-if="term.key && $isGranted('terms')" class="badge bg-primary text-white">
|
<template v-if="i === 0">
|
||||||
<T>sources.submit.key</T>:
|
<span v-if="term.key && $isGranted('terms')" class="badge bg-primary text-white">
|
||||||
{{term.key}}
|
<T>sources.submit.key</T>:
|
||||||
</span>
|
{{term.key}}
|
||||||
<strong><LinkedTextMultiple :texts="term.term" noicons/></strong>
|
</span>
|
||||||
<span v-if="term.original.length">(<LinkedTextMultiple :texts="term.original" glue="; " noicons/>)</span>
|
<strong><LinkedTextMultiple :texts="term.term" noicons/></strong>
|
||||||
– <LinkedText :text="term.definition" noicons/>
|
<span v-if="term.original.length">(<LinkedTextMultiple :texts="term.original" glue="; " noicons/>)</span>
|
||||||
|
–
|
||||||
|
</template>
|
||||||
|
<LinkedText :text="p" noicons/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
|
|
Reference in New Issue