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