add parent title to prod NodeView
This commit is contained in:
@@ -5,12 +5,11 @@
|
|||||||
<div class="d-flex w-100">
|
<div class="d-flex w-100">
|
||||||
<h4 class="mr-auto">
|
<h4 class="mr-auto">
|
||||||
<div class="node-view-header-type">
|
<div class="node-view-header-type">
|
||||||
{{ $t('variants.' + node.variant) }} {{ mode === 'card' ? $t('from') : '' }}
|
{{ $t('variants.' + node.variant) }} {{ mode === 'card' && node.parents ? $t('from') : '' }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="mode === 'card'" class="node-view-header-parent">
|
<div v-if="mode === 'card' && node.parents && node.parents.length" class="node-view-header-parent">
|
||||||
<!-- FIXME display parent title and authors -->
|
<node-view-title :node="node.parents[0]" edition />
|
||||||
{{ parent }}
|
|
||||||
</div>
|
</div>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
@@ -21,10 +20,16 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { trim, toCommaList } from '@/helpers/common'
|
import { trim, toCommaList } from '@/helpers/common'
|
||||||
|
import { NodeViewTitle } from '@/components/nodes'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NodeViewHeaderProd',
|
name: 'NodeViewHeaderProd',
|
||||||
|
|
||||||
|
components: {
|
||||||
|
NodeViewTitle
|
||||||
|
},
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
node: { type: Object, required: true },
|
node: { type: Object, required: true },
|
||||||
mode: { type: String, required: true }
|
mode: { type: String, required: true }
|
||||||
|
|||||||
Reference in New Issue
Block a user